public class ReleaseStrategyFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<ReleaseStrategy>, org.springframework.beans.factory.InitializingBean
ReleaseStrategy.
Encapsulates the knowledge of the default strategy and search algorithms for POJO and annotated methods.| Constructor and Description |
|---|
ReleaseStrategyFactoryBean() |
ReleaseStrategyFactoryBean(Object target)
Deprecated.
since 4.2.5 in favor of appropriate setters
to avoid
BeanCurrentlyInCreationException
during AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck() |
ReleaseStrategyFactoryBean(Object target,
String methodName)
Deprecated.
since 4.2.5 in favor of appropriate setters
to avoid
BeanCurrentlyInCreationException
during AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
ReleaseStrategy |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setMethodName(String methodName) |
void |
setTarget(Object target) |
public ReleaseStrategyFactoryBean()
@Deprecated public ReleaseStrategyFactoryBean(Object target)
BeanCurrentlyInCreationException
during AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck()target - the target object (null if default strategy is acceptable)@Deprecated public ReleaseStrategyFactoryBean(Object target, String methodName)
BeanCurrentlyInCreationException
during AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck()target - the target object (null if default strategy is acceptable)methodName - the method name to invoke in the target (null if it can be inferred)public void setTarget(Object target)
public void setMethodName(String methodName)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic ReleaseStrategy getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<ReleaseStrategy>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<ReleaseStrategy>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<ReleaseStrategy>