Class FactoryManager
java.lang.Object
com.aquima.interactions.framework.FactoryManager
- All Implemented Interfaces:
IFactoryManager
Customizable factory manager implementation. This factory manager can be used by application configurations to
provide custom implementations of the various factories services by this manager.
- Since:
- 6.2
- Author:
- O. Kerpershoek, F. van der Meer
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for the factory manager, none of the factories that are serviced by this manager are initialized. -
Method Summary
Modifier and TypeMethodDescriptionreturn an action handler factory.return a dynamic container factory.This method returns the content manager factory which supplies content managers based on a connection.getContentManagerFactory
(IPortalContext context, PersistenceLevel persistence) Creates a content manager factory for the given context and persistence level.This method returns the schema composer factory which supplies schema(s) for the communication engine.Returns the domain values factory which supplies values for external domains.This method returns a mask factory.This method returns the match type factory which can create custom match functions.This method returns the process factory which supplies external components for the process engine.This method returns a document renderer factory.Returns the rule factory.This method returns the serializer factory for creating serializers based on mime types.Return a service factory, a service is constructed by its definition.This method returns the soap message handler factory which createsISoapMessageHandler
instances.This method returns a time tracker factory.This method returns the validator factory, that is used to request (custom) validator implementations.void
This method may be used to specify the action handler factory implementation.void
setContainerFactory
(IContainerFactory factory) This method may be used to specify the container factory implementation.void
This method may be used to specify the content manager factory implementation.void
This method may be used to specify the custom schema element factory implementation.void
This method may be used to specify the domain values factory implementation.void
setMaskFactory
(IMaskFactory factory) This method may be used to specify the mask factory implementation.void
setMatchTypeFactory
(IMatchTypeFactory factory) This method may be used to specify the match type factory implementation.void
This method may be used to specify the process factory implementation.void
setRendererFactory
(IRendererFactory factory) This method may be used to specify the renderer factory implementation.void
setRuleFactory
(IRuleFactory factory) This method may be used to specify the rule factory implementation.void
void
setServiceFactory
(IServiceFactory factory) This method may be used to specify the service factory implementation.void
void
setTimeTrackerFactory
(ITimeTrackerFactory factory) This method may be used to specify the time-tracker factory implementation.void
setValidatorFactory
(IValidatorFactory factory) This method may be used to specify the validator factory that should be used.
-
Constructor Details
-
FactoryManager
public FactoryManager()Default constructor for the factory manager, none of the factories that are serviced by this manager are initialized.
-
-
Method Details
-
getContainerFactory
Description copied from interface:IFactoryManager
return a dynamic container factory. Works similar to the service factory- Specified by:
getContainerFactory
in interfaceIFactoryManager
- Returns:
- IContainerFactory never null
-
setContainerFactory
This method may be used to specify the container factory implementation.- Parameters:
factory
- The factory implementation that should be used.
-
getServiceFactory
Description copied from interface:IFactoryManager
Return a service factory, a service is constructed by its definition.- Specified by:
getServiceFactory
in interfaceIFactoryManager
- Returns:
- IServiceFactory never null
-
setServiceFactory
This method may be used to specify the service factory implementation.- Parameters:
factory
- The factory implementation that should be used.
-
getActionHandlerFactory
Description copied from interface:IFactoryManager
return an action handler factory. Works similar to the service factory- Specified by:
getActionHandlerFactory
in interfaceIFactoryManager
- Returns:
- IActionHandlerFactory never null
-
setActionHandlerFactory
This method may be used to specify the action handler factory implementation.- Parameters:
factory
- The factory implementation that should be used.
-
getMatchTypeFactory
Description copied from interface:IFactoryManager
This method returns the match type factory which can create custom match functions.- Specified by:
getMatchTypeFactory
in interfaceIFactoryManager
- Returns:
- The match type factory.
-
setMatchTypeFactory
This method may be used to specify the match type factory implementation.- Parameters:
factory
- The factory implementation that should be used.
-
getRuleFactory
Description copied from interface:IFactoryManager
Returns the rule factory. This interface knows how to construct various (custom) rules from a definition. Either by class or custom implementation.- Specified by:
getRuleFactory
in interfaceIFactoryManager
- Returns:
- A rule factory, never null
-
setRuleFactory
This method may be used to specify the rule factory implementation.- Parameters:
factory
- The factory implementation that should be used.
-
getValidatorFactory
Description copied from interface:IFactoryManager
This method returns the validator factory, that is used to request (custom) validator implementations.- Specified by:
getValidatorFactory
in interfaceIFactoryManager
- Returns:
- Validator factory, never null.
-
setValidatorFactory
This method may be used to specify the validator factory that should be used.- Parameters:
factory
- the validator factory that should be used.
-
getTimeTrackerFactory
Description copied from interface:IFactoryManager
This method returns a time tracker factory.- Specified by:
getTimeTrackerFactory
in interfaceIFactoryManager
- Returns:
- The time tracker factory to use when creating new time trackers.
-
setTimeTrackerFactory
This method may be used to specify the time-tracker factory implementation.- Parameters:
factory
- The factory implementation that should be used.
-
getRendererFactory
Description copied from interface:IFactoryManager
This method returns a document renderer factory.- Specified by:
getRendererFactory
in interfaceIFactoryManager
- Returns:
- The document renderer factory to use when creating document renderers.
-
setRendererFactory
This method may be used to specify the renderer factory implementation.- Parameters:
factory
- The factory implementation that should be used.
-
setMaskFactory
This method may be used to specify the mask factory implementation.- Parameters:
factory
- The factory implementation that should be used.
-
getMaskFactory
Description copied from interface:IFactoryManager
This method returns a mask factory.- Specified by:
getMaskFactory
in interfaceIFactoryManager
- Returns:
- The mask factory.
-
setDomainValuesFactory
This method may be used to specify the domain values factory implementation.- Parameters:
factory
- The factory implementation that should be used
-
getDomainValuesFactory
Description copied from interface:IFactoryManager
Returns the domain values factory which supplies values for external domains.- Specified by:
getDomainValuesFactory
in interfaceIFactoryManager
- Returns:
- the domain values factory
-
setCustomSchemaElementFactory
This method may be used to specify the custom schema element factory implementation.- Parameters:
factory
- The factory implementation that should be used.
-
getCustomSchemaElementFactory
Description copied from interface:IFactoryManager
This method returns the schema composer factory which supplies schema(s) for the communication engine.- Specified by:
getCustomSchemaElementFactory
in interfaceIFactoryManager
- Returns:
- The schema composer factory.
-
setProcessFactory
This method may be used to specify the process factory implementation.- Parameters:
factory
- the process extension factory
-
getProcessEntityFactory
Description copied from interface:IFactoryManager
This method returns the process factory which supplies external components for the process engine.- Specified by:
getProcessEntityFactory
in interfaceIFactoryManager
- Returns:
- The process factory, never null.
-
setContentManagerFactory
This method may be used to specify the content manager factory implementation.- Parameters:
factory
- the content manager factory
-
getContentManagerFactory
Description copied from interface:IFactoryManager
This method returns the content manager factory which supplies content managers based on a connection.Content created with the returned content manager will be permanently persisted. This method is equivalent with
IFactoryManager.getContentManagerFactory(IPortalContext, PersistenceLevel)
with a persistence level ofPERMANENT
.- Specified by:
getContentManagerFactory
in interfaceIFactoryManager
- Returns:
- The content manager, never null
-
getContentManagerFactory
public IContentManagerFactory getContentManagerFactory(IPortalContext context, PersistenceLevel persistence) Description copied from interface:IFactoryManager
Creates a content manager factory for the given context and persistence level.When the persistence level is temporary, the returned content manager factory may create content managers that may be scoped to a portal scope of the given context (eg request, flow, session, etc.), or may use a different strategy for deleting temporary content.
- Specified by:
getContentManagerFactory
in interfaceIFactoryManager
- Parameters:
context
- provides scopes for temporary content managerspersistence
- the persistence level of the content that will be created using this content manager factory- Returns:
- the content manager factory, never null.
-
setSerializerFactory
-
getSerializerFactory
Description copied from interface:IFactoryManager
This method returns the serializer factory for creating serializers based on mime types.- Specified by:
getSerializerFactory
in interfaceIFactoryManager
- Returns:
- The serializer factory.
-
setSoapMessageHandlerFactory
-
getSoapMessageHandlerFactory
Description copied from interface:IFactoryManager
This method returns the soap message handler factory which createsISoapMessageHandler
instances.- Specified by:
getSoapMessageHandlerFactory
in interfaceIFactoryManager
- Returns:
- The soap message handler factory
-