Package it.tidalwave.role.spring.spi
Class AnnotationSpringSystemRoleFactory
- java.lang.Object
-
- it.tidalwave.role.spi.SystemRoleFactorySupport
-
- it.tidalwave.role.spring.spi.AnnotationSpringSystemRoleFactory
-
- All Implemented Interfaces:
SystemRoleFactory
@Configurable public class AnnotationSpringSystemRoleFactory extends SystemRoleFactorySupport
A specialization ofSystemRoleFactorySupport
for a Spring context that uses annotations (DciRole
andDciContext
) for retrieving role metadata and is capable to inject Spring beans into created roles.- Author:
- Fabrizio Giudici
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface it.tidalwave.role.spi.SystemRoleFactory
SystemRoleFactory.Inner
-
-
Constructor Summary
Constructors Constructor Description AnnotationSpringSystemRoleFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> java.util.Optional<T>
getBean(java.lang.Class<T> beanType)
Retrieves an extra bean.-
Methods inherited from class it.tidalwave.role.spi.SystemRoleFactorySupport
findContextTypeForRole, findDatumTypesForRole, findRoles, logRoles, scan
-
-
-
-
Method Detail
-
getBean
@Nonnull protected <T> java.util.Optional<T> getBean(@Nonnull java.lang.Class<T> beanType)
Retrieves an extra bean.- Overrides:
getBean
in classSystemRoleFactorySupport
- Type Parameters:
T
- the static type of the bean- Parameters:
beanType
- the dynamic type of the bean- Returns:
- the bean
-
-