This content has been marked as final.
Show 3 replies
-
1. Re: RoleBasedAuthorizationInterceptorFactory dependencies
anil.saldhana Apr 1, 2008 2:02 PM (in response to starksm64)The look up is useless in the interceptor factory. It needs to go.
-
2. Re: RoleBasedAuthorizationInterceptorFactory dependencies
anil.saldhana Apr 1, 2008 2:03 PM (in response to starksm64)public class RoleBasedAuthorizationInterceptorFactory extends PerClassAspectFactoryAdaptor implements AspectFactory { public Object createPerClass(Advisor advisor) { // Must be a separate line (EJBContainer cannot be dereferenced) EJBContainer container = EJBContainer.getEJBContainer(advisor); SecurityDomain securityAnnotation = (SecurityDomain) advisor.resolveAnnotation(SecurityDomain.class); //If there is no annotation, return a null action interceptor if(securityAnnotation == null) return new NullInterceptor(); CodeSource ejbCS = advisor.getClazz().getProtectionDomain().getCodeSource(); String ejbName = container.getEjbName(); return new RoleBasedAuthorizationInterceptorv2(container, ejbCS, ejbName); } }
http://jira.jboss.com/jira/browse/EJBTHREE-1250 -
3. Re: RoleBasedAuthorizationInterceptorFactory dependencies
anil.saldhana Apr 1, 2008 2:17 PM (in response to starksm64)http://jira.jboss.com/jira/browse/EJBTHREE-1250 has removed any security manager lookup in the authz interceptor factory.