org.springframework.config.java.core
Class ExternalBeanMethodProcessor
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final Logger log
ExternalBeanMethodProcessor
public ExternalBeanMethodProcessor(BeanFactory owningBeanFactory,
BeanNamingStrategy namingStrategy)
- Parameters:
owningBeanFactory
- non-nullnamingStrategy
- non-null
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.