Class PersistenceAwareFactoryManager
- All Implemented Interfaces:
IFactoryManager
IFactoryManager
wrapper that is aware of the current ITemporaryPersistenceStrategy
being used and
enforces the rule that content cannot be stored permanently in a memory connection.
When a IContentManagerFactory
is requested for temporary content, this wrapper uses the temporary persistence
strategy to obtain the IContentManagerFactory
. When an IContentManagerFactory
is requested for
permanent content, this wrapper ensures that content cannot be stored permanently in a memory connection.
- Since:
- 11.0
- Author:
- Petru Galanton
-
Constructor Summary
ConstructorsConstructorDescriptionPersistenceAwareFactoryManager
(IFactoryManager delegate, ITemporaryPersistenceStrategy persistenceStrategy) -
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.
-
Constructor Details
-
PersistenceAwareFactoryManager
public PersistenceAwareFactoryManager(IFactoryManager delegate, ITemporaryPersistenceStrategy persistenceStrategy)
-
-
Method Details
-
getDelegate
-
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
-
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.
-
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
-
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
-
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
-
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.
-
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.
-
getMaskFactory
Description copied from interface:IFactoryManager
This method returns a mask factory.- Specified by:
getMaskFactory
in interfaceIFactoryManager
- Returns:
- The mask factory.
-
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.
-
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
-
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.
-
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.
-
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.
-
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.
-
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
-