org.jboss.security.plugins
Class JaasSecurityManagerService.DefaultCacheObjectFactory

java.lang.Object
  extended by org.jboss.security.plugins.JaasSecurityManagerService.DefaultCacheObjectFactory
All Implemented Interfaces:
InvocationHandler, ObjectFactory
Enclosing class:
JaasSecurityManagerService

public static class JaasSecurityManagerService.DefaultCacheObjectFactory
extends Object
implements InvocationHandler, ObjectFactory

java:/timedCacheFactory ObjectFactory implementation


Constructor Summary
JaasSecurityManagerService.DefaultCacheObjectFactory()
           
 
Method Summary
 Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment)
          Object factory implementation.
 Object invoke(Object obj, Method method, 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 Object getObjectInstance(Object obj,
                                Name name,
                                Context nameCtx,
                                Hashtable environment)
                         throws 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 ObjectFactory
Throws:
Exception

invoke

public Object invoke(Object obj,
                     Method method,
                     Object[] args)
              throws 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 InvocationHandler
Throws:
Throwable


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.