Spring Integration

org.springframework.integration.config
Class CorrelationStrategyFactoryBean

java.lang.Object
  extended by org.springframework.integration.config.CorrelationStrategyFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<CorrelationStrategy>

public class CorrelationStrategyFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.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.

Author:
Dave Syer

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.
 
Method Summary
 CorrelationStrategy getObject()
           
 java.lang.Class<?> getObjectType()
           
 boolean isSingleton()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

getObject

public CorrelationStrategy getObject()
                              throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<CorrelationStrategy>
Throws:
java.lang.Exception

getObjectType

public java.lang.Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<CorrelationStrategy>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<CorrelationStrategy>

Spring Integration