Methods Summary |
---|
public java.lang.Object | createPerClass(org.jboss.aop.Advisor advisor)
Object domain = null;
Container container = (Container)advisor;
try
{
InitialContext ctx = container.getInitialContext();
org.jboss.annotation.security.SecurityDomain securityAnnotation = (org.jboss.annotation.security.SecurityDomain) advisor.resolveAnnotation(org.jboss.annotation.security.SecurityDomain.class);
domain = SecurityDomainManager.getSecurityManager(securityAnnotation.value(), ctx);
}
catch (NamingException e)
{
throw new RuntimeException(e);
}
AuthenticationManager manager = (AuthenticationManager) domain;
RealmMapping mapping = (RealmMapping) domain;
if (manager == null) throw new RuntimeException("Unable to find Security Domain");
return new RoleBasedAuthorizationInterceptor(manager, mapping, container);
|
public java.lang.Object | createPerInstance(org.jboss.aop.Advisor advisor, org.jboss.aop.InstanceAdvisor instanceAdvisor)
throw new RuntimeException("PER_VM not supported for this interceptor factory, only PER_CLASS");
|
public java.lang.Object | createPerJoinpoint(org.jboss.aop.Advisor advisor, org.jboss.aop.joinpoint.Joinpoint jp)
throw new RuntimeException("PER_VM not supported for this interceptor factory, only PER_CLASS");
|
public java.lang.Object | createPerJoinpoint(org.jboss.aop.Advisor advisor, org.jboss.aop.InstanceAdvisor instanceAdvisor, org.jboss.aop.joinpoint.Joinpoint jp)
throw new RuntimeException("PER_VM not supported for this interceptor factory, only PER_CLASS");
|
public java.lang.Object | createPerVM()
throw new RuntimeException("PER_VM not supported for this interceptor factory, only PER_CLASS");
|
public java.lang.String | getName()
return getClass().getName();
|