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
public class AnnotationSpringRoleManager extends RoleManagerSupport
A specialization ofRoleManagerSupportfor a Spring context that uses annotations (DciRoleandDciContext) for retrieving role metadata and is capable to inject Spring beans into created roles.- Author:
- Fabrizio Giudici
-
-
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> TgetBean(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:
getBeanin classRoleManagerSupport
-
findContextTypeForRole
@Nonnull protected java.lang.Class<?> findContextTypeForRole(@Nonnull java.lang.Class<?> roleImplementationType) throws NotFoundException- Specified by:
findContextTypeForRolein classRoleManagerSupport- Throws:
NotFoundException
-
findDatumTypesForRole
@Nonnull protected java.lang.Class<?>[] findDatumTypesForRole(@Nonnull java.lang.Class<?> roleImplementationType)- Specified by:
findDatumTypesForRolein classRoleManagerSupport
-
-