fr.dyade.aaa.jndi2.scn

Class scnURLContextFactory

Implemented Interfaces:
ObjectFactory

public class scnURLContextFactory
extends java.lang.Object
implements ObjectFactory

Context factory for scnURLContext objects. This factory will be used for all "scn:..." urls provided as Name objects for all JNDI operations.

Field Summary

static Logger
logger

Method Summary

Object
getObjectInstance(Object url, Name name, Context ctx, Hashtable env)
Returns an instance of scnURLContext for a java URL.

Field Details

logger

public static final Logger logger

Method Details

getObjectInstance

public Object getObjectInstance(Object url,
                                Name name,
                                Context ctx,
                                Hashtable env)
            throws Exception
Returns an instance of scnURLContext for a java URL. If url is null, the result is a context for resolving java URLs. If url is a URL, the result is a context named by the URL.

Parameters:
url - String with a "scn:" prefix or null.
name - Name of context, relative to ctx, or null.
ctx - Context relative to which 'name' is named.
env - Environment to use when creating the context


Copyright B) 2004 Scalagent - All rights reserved