org.jboss.security.plugins
Class JaasSecurityManagerService.DefaultCacheObjectFactory

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

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

java:/timedCacheFactory ObjectFactory implementation


Constructor Summary
JaasSecurityManagerService.DefaultCacheObjectFactory()
           
 
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.DefaultCacheObjectFactory

public JaasSecurityManagerService.DefaultCacheObjectFactory()
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. All this does is create a new TimedCache instance.

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