Class AnnotatedServiceFactory
java.lang.Object
com.aquima.web.config.annotation.factory.AnnotatedFactoryBase
com.aquima.web.config.annotation.factory.AnnotatedServiceFactory
- All Implemented Interfaces:
com.aquima.interactions.portal.IServiceFactory
public final class AnnotatedServiceFactory
extends AnnotatedFactoryBase
implements com.aquima.interactions.portal.IServiceFactory
ServiceFactory implementation that scans the Spring context for beans with an AquimaService annotation.
- Since:
- 8.0
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AnnotatedServiceFactory
(org.springframework.context.ApplicationContext ctx, String projectName) Constructs a service factory by scanning the Spring context for beans with an @AquimaService annotation. -
Method Summary
Modifier and TypeMethodDescriptioncom.aquima.interactions.portal.IService
getService
(com.aquima.interactions.foundation.ApplicationID applicationId, String serviceTypeName) Methods inherited from class com.aquima.web.config.annotation.factory.AnnotatedFactoryBase
getAnnotation
-
Constructor Details
-
AnnotatedServiceFactory
protected AnnotatedServiceFactory(org.springframework.context.ApplicationContext ctx, String projectName) Constructs a service factory by scanning the Spring context for beans with an @AquimaService annotation.- Parameters:
ctx
- The Spring context, required.projectName
- The optional project name that is used when filtering the annotated beans.
-
-
Method Details
-
getService
public com.aquima.interactions.portal.IService getService(com.aquima.interactions.foundation.ApplicationID applicationId, String serviceTypeName) - Specified by:
getService
in interfacecom.aquima.interactions.portal.IServiceFactory
-