eXo Kernel :: Component :: Common Service 2.4.11-UXP01

org.exoplatform.services.naming
Class SimpleContext

java.lang.Object
  extended by org.exoplatform.services.naming.SimpleContext
All Implemented Interfaces:
Context

public class SimpleContext
extends Object
implements Context

Created by The eXo Platform SAS.

Version:
$Id: SimpleContext.java 7117 2006-07-17 11:47:46Z peterit $
Author:
Gennady Azarenkov

Field Summary
 
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
SimpleContext()
           
 
Method Summary
 Object addToEnvironment(String name1, Object name2)
          
 void bind(Name name, Object value)
          
 void bind(String name, Object value)
          
protected  void bind(String name, Object value, boolean checkIfExists)
           
protected  void bindRefValue(String name, Object value)
          
 void close()
          
 Name composeName(Name nam1, Name name2)
          
 String composeName(String name1, String name2)
          
 Context createSubcontext(Name name)
          
 Context createSubcontext(String name)
          
 void destroySubcontext(Name name)
          
 void destroySubcontext(String name)
          
protected  Map<String,Object> getBindings()
           
 Hashtable<?,?> getEnvironment()
          
protected  Hashtable<?,?> getInternalEnv()
           
protected  Object getMutex()
           
 String getNameInNamespace()
          
 NameParser getNameParser(Name name)
          
 NameParser getNameParser(String name)
          
 NamingEnumeration<NameClassPair> list(Name name)
          
 NamingEnumeration<NameClassPair> list(String name)
          
 NamingEnumeration<Binding> listBindings(Name name)
          
 NamingEnumeration<Binding> listBindings(String name)
          
 Object lookup(Name name)
          
 Object lookup(String name)
          
 Object lookupLink(Name name)
          
 Object lookupLink(String name)
          
protected  String nameToString(Name name)
          Converts a Name to a flat String.
 void rebind(Name name, Object value)
          
 void rebind(String name, Object value)
          
 Object removeFromEnvironment(String name)
          
 void rename(Name name1, Name name2)
          
 void rename(String name1, String name2)
          
protected  void setBindings(Map<String,Object> bindings)
           
 void unbind(Name name)
          
 void unbind(String name)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleContext

public SimpleContext()
Method Detail

getBindings

protected Map<String,Object> getBindings()

setBindings

protected void setBindings(Map<String,Object> bindings)

nameToString

protected String nameToString(Name name)
                       throws NamingException
Converts a Name to a flat String.

Throws:
NamingException

lookup

public Object lookup(Name name)
              throws NamingException

Specified by:
lookup in interface Context
Throws:
NamingException

lookup

public Object lookup(String name)
              throws NamingException

Specified by:
lookup in interface Context
Throws:
NamingException

bind

public void bind(Name name,
                 Object value)
          throws NamingException

Specified by:
bind in interface Context
Throws:
NamingException

bind

public void bind(String name,
                 Object value)
          throws NamingException

Specified by:
bind in interface Context
Throws:
NamingException

bind

protected void bind(String name,
                    Object value,
                    boolean checkIfExists)
             throws NamingException
Throws:
NamingException

bindRefValue

protected void bindRefValue(String name,
                            Object value)
                     throws NamingException

Throws:
NamingException

rebind

public void rebind(Name name,
                   Object value)
            throws NamingException

Specified by:
rebind in interface Context
Throws:
NamingException

rebind

public void rebind(String name,
                   Object value)
            throws NamingException

Specified by:
rebind in interface Context
Throws:
NamingException

unbind

public void unbind(Name name)
            throws NamingException

Specified by:
unbind in interface Context
Throws:
NamingException

unbind

public void unbind(String name)
            throws NamingException

Specified by:
unbind in interface Context
Throws:
NamingException

rename

public void rename(Name name1,
                   Name name2)
            throws NamingException

Specified by:
rename in interface Context
Throws:
NamingException

rename

public void rename(String name1,
                   String name2)
            throws NamingException

Specified by:
rename in interface Context
Throws:
NamingException

list

public NamingEnumeration<NameClassPair> list(Name name)
                                      throws NamingException

Specified by:
list in interface Context
Throws:
NamingException

list

public NamingEnumeration<NameClassPair> list(String name)
                                      throws NamingException

Specified by:
list in interface Context
Throws:
NamingException

listBindings

public NamingEnumeration<Binding> listBindings(Name name)
                                        throws NamingException

Specified by:
listBindings in interface Context
Throws:
NamingException

listBindings

public NamingEnumeration<Binding> listBindings(String name)
                                        throws NamingException

Specified by:
listBindings in interface Context
Throws:
NamingException

destroySubcontext

public void destroySubcontext(Name name)
                       throws NamingException

Specified by:
destroySubcontext in interface Context
Throws:
NamingException

destroySubcontext

public void destroySubcontext(String name)
                       throws NamingException

Specified by:
destroySubcontext in interface Context
Throws:
NamingException

createSubcontext

public Context createSubcontext(Name name)
                         throws NamingException

Specified by:
createSubcontext in interface Context
Throws:
NamingException

createSubcontext

public Context createSubcontext(String name)
                         throws NamingException

Specified by:
createSubcontext in interface Context
Throws:
NamingException

lookupLink

public Object lookupLink(Name name)
                  throws NamingException

Specified by:
lookupLink in interface Context
Throws:
NamingException

lookupLink

public Object lookupLink(String name)
                  throws NamingException

Specified by:
lookupLink in interface Context
Throws:
NamingException

getNameParser

public NameParser getNameParser(Name name)
                         throws NamingException

Specified by:
getNameParser in interface Context
Throws:
NamingException

getNameParser

public NameParser getNameParser(String name)
                         throws NamingException

Specified by:
getNameParser in interface Context
Throws:
NamingException

composeName

public Name composeName(Name nam1,
                        Name name2)
                 throws NamingException

Specified by:
composeName in interface Context
Throws:
NamingException

composeName

public String composeName(String name1,
                          String name2)
                   throws NamingException

Specified by:
composeName in interface Context
Throws:
NamingException

addToEnvironment

public Object addToEnvironment(String name1,
                               Object name2)
                        throws NamingException

Specified by:
addToEnvironment in interface Context
Throws:
NamingException

removeFromEnvironment

public Object removeFromEnvironment(String name)
                             throws NamingException

Specified by:
removeFromEnvironment in interface Context
Throws:
NamingException

getEnvironment

public Hashtable<?,?> getEnvironment()
                              throws NamingException

Specified by:
getEnvironment in interface Context
Throws:
NamingException

getInternalEnv

protected Hashtable<?,?> getInternalEnv()

getMutex

protected Object getMutex()

close

public void close()
           throws NamingException

Specified by:
close in interface Context
Throws:
NamingException

getNameInNamespace

public String getNameInNamespace()
                          throws NamingException

Specified by:
getNameInNamespace in interface Context
Throws:
NamingException

eXo Kernel :: Component :: Common Service 2.4.11-UXP01

Copyright © 2014 eXo Platform SAS. All Rights Reserved.