Class AnnotatedFactoryManager
java.lang.Object
com.aquima.web.config.annotation.factory.AnnotatedFactoryManager
- All Implemented Interfaces:
com.aquima.interactions.portal.IFactoryManager
public final class AnnotatedFactoryManager
extends Object
implements com.aquima.interactions.portal.IFactoryManager
Factory manager class for the factories in Aquima like the service factory and container factory. By default this
class scans the defined packages with
component-scan
for components (e.g. services, container, action
handlers) with specific annotations (e.g.
AquimaService, AquimaContainer, AquimaActionHandler) and adds these automatically to the correct factories.
Example:
@AquimaService("TestService")
public class TestService implements IService { ... }
Important: make sure the classes are found by the component scan- Since:
- 8.0
- Author:
- Danny Roest, Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotatedFactoryManager
(org.springframework.context.ApplicationContext ctx, SoapServiceCallsProperties soapServiceCallsProperties) Constructs a factory manager by scanning the Spring context for annotated beans.AnnotatedFactoryManager
(org.springframework.context.ApplicationContext ctx, SoapServiceCallsProperties soapServiceCallsProperties, String projectName) Constructs a factory manager by scanning the Spring context for annotated beans.AnnotatedFactoryManager
(org.springframework.context.ApplicationContext ctx, SoapServiceCallsProperties soapServiceCallsProperties, String projectName, boolean timeTrackerEnabled) Constructs a factory manager by scanning the Spring context for annotated beans. -
Method Summary
Modifier and TypeMethodDescriptioncom.aquima.interactions.portal.IActionHandlerFactory
com.aquima.interactions.portal.IContainerFactory
com.aquima.interactions.portal.IContentManagerFactory
com.aquima.interactions.portal.IContentManagerFactory
getContentManagerFactory
(com.aquima.interactions.portal.IPortalContext context, com.aquima.interactions.portal.PersistenceLevel persistence) com.aquima.interactions.portal.ICustomSchemaElementFactory
com.aquima.interactions.metamodel.IDomainValuesFactory
com.aquima.interactions.portal.IMaskFactory
com.aquima.interactions.matching.IMatchTypeFactory
com.aquima.interactions.process.IProcessExtensionFactory
com.aquima.interactions.portal.documents.IRendererFactory
com.aquima.interactions.rule.IRuleFactory
com.aquima.interactions.communication.data.serialization.IDataSerializerFactory
com.aquima.interactions.portal.IServiceFactory
com.aquima.interactions.communication.ISoapMessageHandlerFactory
com.aquima.interactions.foundation.timetracker.ITimeTrackerFactory
com.aquima.interactions.rule.IValidatorFactory
-
Constructor Details
-
AnnotatedFactoryManager
public AnnotatedFactoryManager(org.springframework.context.ApplicationContext ctx, SoapServiceCallsProperties soapServiceCallsProperties, String projectName) Constructs a factory manager by scanning the Spring context for annotated beans.- Parameters:
ctx
- The Spring context, required.soapServiceCallsProperties
- The soap service call properties.projectName
- The optional project name that is used when filtering the annotated beans.
-
AnnotatedFactoryManager
public AnnotatedFactoryManager(org.springframework.context.ApplicationContext ctx, SoapServiceCallsProperties soapServiceCallsProperties, String projectName, boolean timeTrackerEnabled) Constructs a factory manager by scanning the Spring context for annotated beans.- Parameters:
ctx
- The Spring context, required.soapServiceCallsProperties
- The soap service call properties.projectName
- The optional project name that is used when filtering the annotated beans.timeTrackerEnabled
- if the timeTracker should be enabled.
-
AnnotatedFactoryManager
public AnnotatedFactoryManager(org.springframework.context.ApplicationContext ctx, SoapServiceCallsProperties soapServiceCallsProperties) Constructs a factory manager by scanning the Spring context for annotated beans.- Parameters:
ctx
- The Spring context, required.soapServiceCallsProperties
- the properties
-
-
Method Details
-
getServiceFactory
public com.aquima.interactions.portal.IServiceFactory getServiceFactory()- Specified by:
getServiceFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-
getContainerFactory
public com.aquima.interactions.portal.IContainerFactory getContainerFactory()- Specified by:
getContainerFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-
getActionHandlerFactory
public com.aquima.interactions.portal.IActionHandlerFactory getActionHandlerFactory()- Specified by:
getActionHandlerFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-
getRuleFactory
public com.aquima.interactions.rule.IRuleFactory getRuleFactory()- Specified by:
getRuleFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-
getValidatorFactory
public com.aquima.interactions.rule.IValidatorFactory getValidatorFactory()- Specified by:
getValidatorFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-
getTimeTrackerFactory
public com.aquima.interactions.foundation.timetracker.ITimeTrackerFactory getTimeTrackerFactory()- Specified by:
getTimeTrackerFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-
getRendererFactory
public com.aquima.interactions.portal.documents.IRendererFactory getRendererFactory()- Specified by:
getRendererFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-
getMaskFactory
public com.aquima.interactions.portal.IMaskFactory getMaskFactory()- Specified by:
getMaskFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-
getMatchTypeFactory
public com.aquima.interactions.matching.IMatchTypeFactory getMatchTypeFactory()- Specified by:
getMatchTypeFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-
getDomainValuesFactory
public com.aquima.interactions.metamodel.IDomainValuesFactory getDomainValuesFactory()- Specified by:
getDomainValuesFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-
getCustomSchemaElementFactory
public com.aquima.interactions.portal.ICustomSchemaElementFactory getCustomSchemaElementFactory()- Specified by:
getCustomSchemaElementFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-
getProcessEntityFactory
public com.aquima.interactions.process.IProcessExtensionFactory getProcessEntityFactory()- Specified by:
getProcessEntityFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-
getContentManagerFactory
public com.aquima.interactions.portal.IContentManagerFactory getContentManagerFactory()- Specified by:
getContentManagerFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-
getContentManagerFactory
public com.aquima.interactions.portal.IContentManagerFactory getContentManagerFactory(com.aquima.interactions.portal.IPortalContext context, com.aquima.interactions.portal.PersistenceLevel persistence) - Specified by:
getContentManagerFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-
getSerializerFactory
public com.aquima.interactions.communication.data.serialization.IDataSerializerFactory getSerializerFactory()- Specified by:
getSerializerFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-
getSoapMessageHandlerFactory
public com.aquima.interactions.communication.ISoapMessageHandlerFactory getSoapMessageHandlerFactory()- Specified by:
getSoapMessageHandlerFactory
in interfacecom.aquima.interactions.portal.IFactoryManager
-