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