org.openejb.core.ivm.naming
Class IvmContext

java.lang.Object
  extended byorg.openejb.core.ivm.naming.IvmContext
All Implemented Interfaces:
Context, Serializable

public class IvmContext
extends Object
implements Context, Serializable

See Also:
Serialized Form

Nested Class Summary
protected  class IvmContext.MyBindingEnumeration
           
protected  class IvmContext.MyListEnumeration
           
protected  class IvmContext.MyNamingEnumeration
           
 
Field Summary
 NameNode mynode
           
 
Fields inherited from interface javax.naming.Context
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES
 
Constructor Summary
IvmContext()
           
IvmContext(Hashtable environment)
           
IvmContext(NameNode node)
           
 
Method Summary
 Object addToEnvironment(String propName, Object propVal)
           
 void bind(Name name, Object obj)
          WARNING: this function does not provide support for relative names.
 void bind(String name, Object obj)
          WARNING: this function does not provide support for relative names.
protected  void checkReadOnly()
           
 void close()
           
 Name composeName(Name name, Name prefix)
           
 String composeName(String name, String prefix)
           
static IvmContext createRootContext()
          Creates and returns a IvmContext object that is a root context.
 Context createSubcontext(Name name)
          WARNING: this function does not provide support for relative names.
 Context createSubcontext(String name)
          WARNING: this function does not provide support for relative names.
 void destroySubcontext(Name name)
           
 void destroySubcontext(String name)
           
protected  Object federate(String compositName)
           
 Hashtable getEnvironment()
           
static ObjectFactory[] getFederatedFactories()
           
 String getNameInNamespace()
           
 NameParser getNameParser(Name name)
           
 NameParser getNameParser(String name)
           
 NamingEnumeration list(Name name)
           
 NamingEnumeration list(String name)
           
 NamingEnumeration listBindings(Name name)
           
 NamingEnumeration listBindings(String name)
           
 Object lookup(Name compositName)
           
 Object lookup(String compositName)
           
 Object lookupLink(Name name)
           
 Object lookupLink(String name)
           
static void main(String[] str)
           
 void rebind(Name name, Object obj)
           
 void rebind(String name, Object obj)
           
 Object removeFromEnvironment(String propName)
           
 void rename(Name oldname, Name newname)
           
 void rename(String oldname, String newname)
           
 void unbind(Name name)
           
 void unbind(String name)
           
protected  Object writeReplace()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mynode

public NameNode mynode
Constructor Detail

IvmContext

public IvmContext()

IvmContext

public IvmContext(NameNode node)

IvmContext

public IvmContext(Hashtable environment)
           throws NamingException
Method Detail

createRootContext

public static IvmContext createRootContext()
Creates and returns a IvmContext object that is a root context.


lookup

public Object lookup(String compositName)
              throws NamingException
Specified by:
lookup in interface Context
Throws:
NamingException

federate

protected Object federate(String compositName)
                   throws NamingException
Throws:
NamingException

getFederatedFactories

public static ObjectFactory[] getFederatedFactories()
                                             throws NamingException
Throws:
NamingException

lookup

public Object lookup(Name compositName)
              throws NamingException
Specified by:
lookup in interface Context
Throws:
NamingException

bind

public void bind(String name,
                 Object obj)
          throws NamingException
WARNING: this function does not provide support for relative names.

Specified by:
bind in interface Context
Throws:
NamingException

bind

public void bind(Name name,
                 Object obj)
          throws NamingException
WARNING: this function does not provide support for relative names.

Specified by:
bind in interface Context
Throws:
NamingException

rebind

public void rebind(String name,
                   Object obj)
            throws NamingException
Specified by:
rebind in interface Context
Throws:
NamingException

rebind

public void rebind(Name name,
                   Object obj)
            throws NamingException
Specified by:
rebind in interface Context
Throws:
NamingException

unbind

public void unbind(String name)
            throws NamingException
Specified by:
unbind in interface Context
Throws:
NamingException

unbind

public void unbind(Name name)
            throws NamingException
Specified by:
unbind in interface Context
Throws:
NamingException

rename

public void rename(String oldname,
                   String newname)
            throws NamingException
Specified by:
rename in interface Context
Throws:
NamingException

rename

public void rename(Name oldname,
                   Name newname)
            throws NamingException
Specified by:
rename in interface Context
Throws:
NamingException

list

public NamingEnumeration list(String name)
                       throws NamingException
Specified by:
list in interface Context
Throws:
NamingException

list

public NamingEnumeration list(Name name)
                       throws NamingException
Specified by:
list in interface Context
Throws:
NamingException

listBindings

public NamingEnumeration listBindings(String name)
                               throws NamingException
Specified by:
listBindings in interface Context
Throws:
NamingException

listBindings

public NamingEnumeration listBindings(Name name)
                               throws NamingException
Specified by:
listBindings in interface Context
Throws:
NamingException

destroySubcontext

public void destroySubcontext(String name)
                       throws NamingException
Specified by:
destroySubcontext in interface Context
Throws:
NamingException

destroySubcontext

public void destroySubcontext(Name name)
                       throws NamingException
Specified by:
destroySubcontext in interface Context
Throws:
NamingException

createSubcontext

public Context createSubcontext(String name)
                         throws NamingException
WARNING: this function does not provide support for relative names.

Specified by:
createSubcontext in interface Context
Throws:
NamingException

createSubcontext

public Context createSubcontext(Name name)
                         throws NamingException
WARNING: this function does not provide support for relative names.

Specified by:
createSubcontext in interface Context
Throws:
NamingException

lookupLink

public Object lookupLink(String name)
                  throws NamingException
Specified by:
lookupLink in interface Context
Throws:
NamingException

lookupLink

public Object lookupLink(Name name)
                  throws NamingException
Specified by:
lookupLink in interface Context
Throws:
NamingException

getNameParser

public NameParser getNameParser(String name)
                         throws NamingException
Specified by:
getNameParser in interface Context
Throws:
NamingException

getNameParser

public NameParser getNameParser(Name name)
                         throws NamingException
Specified by:
getNameParser in interface Context
Throws:
NamingException

composeName

public String composeName(String name,
                          String prefix)
                   throws NamingException
Specified by:
composeName in interface Context
Throws:
NamingException

composeName

public Name composeName(Name name,
                        Name prefix)
                 throws NamingException
Specified by:
composeName in interface Context
Throws:
NamingException

addToEnvironment

public Object addToEnvironment(String propName,
                               Object propVal)
                        throws NamingException
Specified by:
addToEnvironment in interface Context
Throws:
NamingException

removeFromEnvironment

public Object removeFromEnvironment(String propName)
                             throws NamingException
Specified by:
removeFromEnvironment in interface Context
Throws:
NamingException

getEnvironment

public Hashtable getEnvironment()
                         throws NamingException
Specified by:
getEnvironment in interface Context
Throws:
NamingException

getNameInNamespace

public String getNameInNamespace()
                          throws NamingException
Specified by:
getNameInNamespace in interface Context
Throws:
NamingException

close

public void close()
           throws NamingException
Specified by:
close in interface Context
Throws:
NamingException

checkReadOnly

protected void checkReadOnly()
                      throws OperationNotSupportedException
Throws:
OperationNotSupportedException

writeReplace

protected Object writeReplace()
                       throws ObjectStreamException
Throws:
ObjectStreamException

main

public static void main(String[] str)
                 throws Exception
Throws:
Exception


Copyright © 1999-2007 OpenEJB. All Rights Reserved.