org.springframework.integration.config
Class ReleaseStrategyFactoryBean
java.lang.Object
org.springframework.integration.config.ReleaseStrategyFactoryBean
- All Implemented Interfaces:
- FactoryBean<ReleaseStrategy>
public class ReleaseStrategyFactoryBean
- extends Object
- implements FactoryBean<ReleaseStrategy>
Convenience factory for XML configuration of a ReleaseStrategy
. Encapsulates the knowledge of the default
strategy and search algorithms for POJO and annotated methods.
- Author:
- Dave Syer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReleaseStrategyFactoryBean
public ReleaseStrategyFactoryBean(Object target)
- Create a factory and set up the delegate which clients of the factory will see as its product.
- Parameters:
target
- the target object (null if default strategy is acceptable)
ReleaseStrategyFactoryBean
public ReleaseStrategyFactoryBean(Object target,
String methodName)
- Create a factory and set up the delegate which clients of the factory will see as its product.
- Parameters:
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)
getObject
public ReleaseStrategy getObject()
throws Exception
- Specified by:
getObject
in interface FactoryBean<ReleaseStrategy>
- Throws:
Exception
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interface FactoryBean<ReleaseStrategy>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface FactoryBean<ReleaseStrategy>
Copyright © 2010. All Rights Reserved.