org.jboss.security.plugins
Class JaasSecurityManagerService.SecurityDomainObjectFactory

java.lang.Object
  extended byorg.jboss.security.plugins.JaasSecurityManagerService.SecurityDomainObjectFactory
All Implemented Interfaces:
java.lang.reflect.InvocationHandler, javax.naming.spi.ObjectFactory
Enclosing class:
JaasSecurityManagerService (src)

public static class JaasSecurityManagerService.SecurityDomainObjectFactory
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, javax.naming.spi.ObjectFactory


Constructor Summary
JaasSecurityManagerService.SecurityDomainObjectFactory()
           
 
Method Summary
 java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment)
          Object factory implementation.
 java.lang.Object invoke(java.lang.Object obj, java.lang.reflect.Method method, java.lang.Object[] args)
          This is the InvocationHandler callback for the Context interface that was created by out getObjectInstance() method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaasSecurityManagerService.SecurityDomainObjectFactory

public JaasSecurityManagerService.SecurityDomainObjectFactory()
Method Detail

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object obj,
                                          javax.naming.Name name,
                                          javax.naming.Context nameCtx,
                                          java.util.Hashtable environment)
                                   throws java.lang.Exception
Object factory implementation. This method returns a Context proxy that is only able to handle a lookup operation for an atomic name of a security domain.

Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
Throws:
java.lang.Exception

invoke

public java.lang.Object invoke(java.lang.Object obj,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
This is the InvocationHandler callback for the Context interface that was created by out getObjectInstance() method. We handle the java:/jaas/domain level operations here.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable