Class CorrelatorFactoryRegistryImpl
java.lang.Object
com.evolveum.midpoint.model.impl.correlator.CorrelatorFactoryRegistryImpl
- All Implemented Interfaces:
CorrelatorFactoryRegistry
@Component
public class CorrelatorFactoryRegistryImpl
extends Object
implements CorrelatorFactoryRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<CB extends AbstractCorrelatorType>
@NotNull CorrelatorinstantiateCorrelator
(@NotNull CorrelatorContext<CB> correlatorContext, @NotNull Task task, @NotNull OperationResult result) Convenience method to look up a correlator factory based on the specific (typed) configuration, and then instantiate the correlator.void
registerFactory
(@NotNull QName name, @NotNull CorrelatorFactory<?, ?> factory) Registers a correlator factory.
-
Constructor Details
-
CorrelatorFactoryRegistryImpl
public CorrelatorFactoryRegistryImpl()
-
-
Method Details
-
registerFactory
public void registerFactory(@NotNull @NotNull QName name, @NotNull @NotNull CorrelatorFactory<?, ?> factory) Description copied from interface:CorrelatorFactoryRegistry
Registers a correlator factory. Typically called from a `@PostConstruct` method.- Specified by:
registerFactory
in interfaceCorrelatorFactoryRegistry
- Parameters:
name
- Name of the configuration item. Must be qualified.
-
instantiateCorrelator
@NotNull public <CB extends AbstractCorrelatorType> @NotNull Correlator instantiateCorrelator(@NotNull @NotNull CorrelatorContext<CB> correlatorContext, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws ConfigurationException Convenience method to look up a correlator factory based on the specific (typed) configuration, and then instantiate the correlator. TODO consider deleting unused `task` parameter- Specified by:
instantiateCorrelator
in interfaceCorrelatorFactoryRegistry
- Throws:
ConfigurationException
-