org.apache.aries.jndi.url
Class ServiceRegistryContext
java.lang.Object
org.apache.aries.jndi.url.AbstractServiceRegistryContext
org.apache.aries.jndi.url.ServiceRegistryContext
- All Implemented Interfaces:
- Context
public class ServiceRegistryContext
- extends AbstractServiceRegistryContext
- implements Context
A JNDI context for looking stuff up from the service registry.
| 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 |
| Methods inherited from class org.apache.aries.jndi.url.AbstractServiceRegistryContext |
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.naming.Context |
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind |
ServiceRegistryContext
public ServiceRegistryContext(org.osgi.framework.BundleContext callerContext,
Hashtable<?,?> environment)
- Why Mr Java this class does indeed take a fine copy of the provided
environment. One might imagine that it is worried that the provider is
not to be trusted.
- Parameters:
environment -
ServiceRegistryContext
public ServiceRegistryContext(org.osgi.framework.BundleContext callerContext,
OsgiName validName,
Map<String,Object> env)
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
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
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.