fr.dyade.aaa.jndi2.hascn
Class hascnURLContextFactory

java.lang.Object
  extended by fr.dyade.aaa.jndi2.hascn.hascnURLContextFactory
All Implemented Interfaces:
javax.naming.spi.ObjectFactory

public class hascnURLContextFactory
extends java.lang.Object
implements javax.naming.spi.ObjectFactory

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


Field Summary
static org.objectweb.util.monolog.api.Logger logger
           
 
Constructor Summary
hascnURLContextFactory()
           
 
Method Summary
 java.lang.Object getObjectInstance(java.lang.Object url, javax.naming.Name name, javax.naming.Context ctx, java.util.Hashtable env)
          Returns an instance of hascnURLContext for a java URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final org.objectweb.util.monolog.api.Logger logger
Constructor Detail

hascnURLContextFactory

public hascnURLContextFactory()
Method Detail

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object url,
                                          javax.naming.Name name,
                                          javax.naming.Context ctx,
                                          java.util.Hashtable env)
                                   throws java.lang.Exception
Returns an instance of hascnURLContext 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.

Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
Parameters:
url - String with a "hascn:" 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
Throws:
java.lang.Exception


Copyright © 2011 ScalAgent D.T.. All Rights Reserved.