public class DecoratingInitialContextFactory extends Object implements InitialContextFactory
The contexts returned from the wrapped initial factory are hidden behind a proxy
that implements the intersection of interfaces from the supportedContextInterfaces
constructor parameter and the actual interfaces the wrapped context implements.
The proxy method calls are handled using the DecoratingInvocationHandler which is initialized
with the list of pickers that are used to intercept the method
calls on the wrapped context.
DecoratorPicker,
DecoratingInvocationHandler| Constructor and Description |
|---|
DecoratingInitialContextFactory(InitialContextFactory factory,
List<DecoratorPicker<Context,ContextDecorator>> decoratorPickers) |
public DecoratingInitialContextFactory(InitialContextFactory factory, List<DecoratorPicker<Context,ContextDecorator>> decoratorPickers)
public Context getInitialContext(Hashtable<?,?> environment) throws NamingException
getInitialContext in interface InitialContextFactoryNamingExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.