org.apache.aries.jndi.url
Class ServiceRegistryContext

java.lang.Object
  extended by org.apache.aries.jndi.url.AbstractServiceRegistryContext
      extended by 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.


Field Summary
 
Fields inherited from class org.apache.aries.jndi.url.AbstractServiceRegistryContext
callerContext, env, parser
 
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
ServiceRegistryContext(org.osgi.framework.BundleContext callerContext, Hashtable<?,?> environment)
          Why Mr Java this class does indeed take a fine copy of the provided environment.
ServiceRegistryContext(org.osgi.framework.BundleContext callerContext, OsgiName validName, Map<String,Object> env)
           
 
Method Summary
 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)
           
 
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
 

Constructor Detail

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)
Method Detail

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.