org.mule.transport.legstar.config
Class HostContextFactory

java.lang.Object
  extended by org.osjava.sj.SimpleContextFactory
      extended by org.mule.transport.legstar.config.HostContextFactory
All Implemented Interfaces:
InitialContextFactory

public class HostContextFactory
extends org.osjava.sj.SimpleContextFactory

A cheap alternative to RefFSContextFactory based on simple-jndi.

The idea is to help declaring z/OS resources when no JNDI environment is provided.

See Also:
for documentation.

Constructor Summary
HostContextFactory()
           
 
Method Summary
 Context getInitialContext(Hashtable environment)
          Redirect the common URL parameter to become simple JNDI root folder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostContextFactory

public HostContextFactory()
Method Detail

getInitialContext

public Context getInitialContext(Hashtable environment)
                          throws NamingException
Redirect the common URL parameter to become simple JNDI root folder.

We replace the '.' as a delimiter so that resources can resemble z/OS PDS names or MQ Queue names.

Specified by:
getInitialContext in interface InitialContextFactory
Overrides:
getInitialContext in class org.osjava.sj.SimpleContextFactory
Throws:
NamingException
See Also:
InitialContextFactory.getInitialContext(java.util.Hashtable)


Copyright © 2013 LegSem. All Rights Reserved.