public abstract class AbstractServiceRegistryContext extends Object implements Context
| Modifier and Type | Field and Description |
|---|---|
protected org.osgi.framework.BundleContext |
callerContext |
protected Map<String,Object> |
env
The environment for this context
|
protected NameParser |
parser
The name parser for the service registry name space
|
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 and Description |
|---|
AbstractServiceRegistryContext(org.osgi.framework.BundleContext callerContext,
Hashtable<?,?> environment) |
AbstractServiceRegistryContext(org.osgi.framework.BundleContext callerContext,
Map<?,?> environment) |
| Modifier and Type | Method and Description |
|---|---|
Object |
addToEnvironment(String propName,
Object propVal) |
void |
bind(Name name,
Object obj) |
void |
bind(String name,
Object obj) |
void |
close() |
Name |
composeName(Name name,
Name prefix) |
String |
composeName(String name,
String prefix) |
Context |
createSubcontext(Name name) |
Context |
createSubcontext(String name) |
void |
destroySubcontext(Name name) |
void |
destroySubcontext(String name) |
Hashtable<?,?> |
getEnvironment() |
String |
getNameInNamespace() |
NameParser |
getNameParser(Name name) |
NameParser |
getNameParser(String name) |
Object |
lookupLink(Name name) |
Object |
lookupLink(String name) |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlist, list, listBindings, listBindings, lookup, lookupprotected org.osgi.framework.BundleContext callerContext
protected NameParser parser
public AbstractServiceRegistryContext(org.osgi.framework.BundleContext callerContext,
Hashtable<?,?> environment)
public AbstractServiceRegistryContext(org.osgi.framework.BundleContext callerContext,
Map<?,?> environment)
public Object addToEnvironment(String propName, Object propVal) throws NamingException
addToEnvironment in interface ContextNamingExceptionpublic void bind(Name name, Object obj) throws NamingException
bind in interface ContextNamingExceptionpublic void bind(String name, Object obj) throws NamingException
bind in interface ContextNamingExceptionpublic void close()
throws NamingException
close in interface ContextNamingExceptionpublic Name composeName(Name name, Name prefix) throws NamingException
composeName in interface ContextNamingExceptionpublic String composeName(String name, String prefix) throws NamingException
composeName in interface ContextNamingExceptionpublic Context createSubcontext(Name name) throws NamingException
createSubcontext in interface ContextNamingExceptionpublic Context createSubcontext(String name) throws NamingException
createSubcontext in interface ContextNamingExceptionpublic void destroySubcontext(Name name) throws NamingException
destroySubcontext in interface ContextNamingExceptionpublic void destroySubcontext(String name) throws NamingException
destroySubcontext in interface ContextNamingExceptionpublic Hashtable<?,?> getEnvironment() throws NamingException
getEnvironment in interface ContextNamingExceptionpublic String getNameInNamespace() throws NamingException
getNameInNamespace in interface ContextNamingExceptionpublic NameParser getNameParser(Name name) throws NamingException
getNameParser in interface ContextNamingExceptionpublic NameParser getNameParser(String name) throws NamingException
getNameParser in interface ContextNamingExceptionpublic Object lookupLink(Name name) throws NamingException
lookupLink in interface ContextNamingExceptionpublic Object lookupLink(String name) throws NamingException
lookupLink in interface ContextNamingExceptionpublic void rebind(Name name, Object obj) throws NamingException
rebind in interface ContextNamingExceptionpublic void rebind(String name, Object obj) throws NamingException
rebind in interface ContextNamingExceptionpublic Object removeFromEnvironment(String propName) throws NamingException
removeFromEnvironment in interface ContextNamingExceptionpublic void rename(Name oldName, Name newName) throws NamingException
rename in interface ContextNamingExceptionpublic void rename(String oldName, String newName) throws NamingException
rename in interface ContextNamingExceptionpublic void unbind(Name name) throws NamingException
unbind in interface ContextNamingExceptionpublic void unbind(String name) throws NamingException
unbind in interface ContextNamingExceptionCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.