Class ClassNameCRStrategyRegistry
java.lang.Object
org.exolab.castor.builder.conflictresolution.ClassNameCRStrategyRegistry
Registry for
ClassNameCRStrategy
implementations obtained from the
Castor builder properties file.- Since:
- 1.1
- Version:
- $Revision: 5951 $ $Date: 2006-04-08 08:58:10 -0600 (Sat, 08 Apr 2006) $
- Author:
- Werner Guttmann
-
Constructor Summary
ConstructorsConstructorDescriptionClassNameCRStrategyRegistry
(String enlistedNameConflictStrategies) Construct an instance ofClassNameCRStrategyRegistry
that loads theClassNameCRStrategy
implementations specified in the given BuilderConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionReturns aClassNameCRStrategy
with the specified name.String[]
Returns the names of all the configuredClassNameCRStrategy
implementations.
-
Constructor Details
-
ClassNameCRStrategyRegistry
Construct an instance ofClassNameCRStrategyRegistry
that loads theClassNameCRStrategy
implementations specified in the given BuilderConfiguration.- Parameters:
enlistedNameConflictStrategies
- The BuilderConfiguration.
-
-
Method Details
-
getClassNameConflictResolutionStrategyNames
Returns the names of all the configuredClassNameCRStrategy
implementations. AClassNameCRStrategy
instance can be obtained by thegetClassNameConflictResolutionStrategy(java.lang.String)
method.- Returns:
- Names of
ClassNameCRStrategy
implementations
-
getClassNameConflictResolutionStrategy
Returns aClassNameCRStrategy
with the specified name. Returns null if the named strategy is not supported.- Parameters:
name
- The name of the ClassNameConflictResolutionStrategy.- Returns:
- The TransactionManagerFactory or null if none exists.
-