org.springframework.config.java.core
Class ExternalBeanMethodProcessor

java.lang.Object
  extended by org.springframework.config.java.core.ExternalBeanMethodProcessor
All Implemented Interfaces:
BeanMethodProcessor

public class ExternalBeanMethodProcessor
extends Object

BeanMethodProcessor capable of processing ExternalBean-annotated methods.

Author:
Chris Beams

Field Summary
protected  Logger log
           
 
Constructor Summary
ExternalBeanMethodProcessor(BeanFactory owningBeanFactory, BeanNamingStrategy namingStrategy)
           
 
Method Summary
protected static Set<Method> findAllMethods(Class<?> configurationClass)
           
static Collection<Method> findExternalBeanCreationMethods(Class<?> configurationClass)
          Find all methods that are annotated with ExternalBean.
protected  Collection<Method> findMatchingMethods(Class<?> configurationClass)
           
protected  boolean isAnnotatedAndNonPrivate(Method candidateMethod)
           
static boolean isExternalBeanCreationMethod(Method candidateMethod)
          Check whether candidateMethod is an ExternalBean method.
 Object processMethod(Method targetMethod)
           
protected  boolean understands(Method candidateMethod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final Logger log
Constructor Detail

ExternalBeanMethodProcessor

public ExternalBeanMethodProcessor(BeanFactory owningBeanFactory,
                                   BeanNamingStrategy namingStrategy)
Parameters:
owningBeanFactory - non-null
namingStrategy - non-null
Method Detail

processMethod

public Object processMethod(Method targetMethod)
Parameters:
targetMethod - must be non-private and annotated with ExternalBean

findExternalBeanCreationMethods

public static Collection<Method> findExternalBeanCreationMethods(Class<?> configurationClass)
Find all methods that are annotated with ExternalBean.

Parameters:
configurationClass -
Returns:
collection of all methods annotated with ExternalBean

isExternalBeanCreationMethod

public static boolean isExternalBeanCreationMethod(Method candidateMethod)
Check whether candidateMethod is an ExternalBean method. Method may be annotated directly or in the case of overriding, may inherit the declaration from a superclass/superinterface.

Parameters:
candidateMethod -
Returns:
true if non-private and annotated directly or indirectly with ExternalBean

findAllMethods

protected static Set<Method> findAllMethods(Class<?> configurationClass)

isAnnotatedAndNonPrivate

protected boolean isAnnotatedAndNonPrivate(Method candidateMethod)

understands

protected boolean understands(Method candidateMethod)

findMatchingMethods

protected Collection<Method> findMatchingMethods(Class<?> configurationClass)


Copyright � 2005-2008 Spring Framework. All Rights Reserved.