Package it.tidalwave.role.spring.spi
Class AnnotationSpringRoleManager
- java.lang.Object
-
- it.tidalwave.role.spi.RoleManagerSupport
-
- it.tidalwave.role.spring.spi.AnnotationSpringRoleManager
-
- All Implemented Interfaces:
RoleManager
@Configurable public class AnnotationSpringRoleManager extends RoleManagerSupport
A specialization ofRoleManagerSupport
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.RoleManager
RoleManager.Locator
-
-
Constructor Summary
Constructors Constructor Description AnnotationSpringRoleManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Class<?>
findContextTypeForRole(java.lang.Class<?> roleImplementationType)
protected java.lang.Class<?>[]
findDatumTypesForRole(java.lang.Class<?> roleImplementationType)
protected <T> T
getBean(java.lang.Class<T> beanType)
-
Methods inherited from class it.tidalwave.role.spi.RoleManagerSupport
findRoles, logRoles, scan
-
-
-
-
Method Detail
-
getBean
@Nonnull protected <T> T getBean(@Nonnull java.lang.Class<T> beanType)
- Specified by:
getBean
in classRoleManagerSupport
-
findContextTypeForRole
@Nonnull protected java.lang.Class<?> findContextTypeForRole(@Nonnull java.lang.Class<?> roleImplementationType) throws NotFoundException
- Specified by:
findContextTypeForRole
in classRoleManagerSupport
- Throws:
NotFoundException
-
findDatumTypesForRole
@Nonnull protected java.lang.Class<?>[] findDatumTypesForRole(@Nonnull java.lang.Class<?> roleImplementationType)
- Specified by:
findDatumTypesForRole
in classRoleManagerSupport
-
-