public class JndiServiceImpl extends Object implements JndiService
| Constructor and Description |
|---|
JndiServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
alias(String name,
String alias)
Create an alias on a given JNDI name.
|
void |
bind(long serviceId,
String name)
Bind a given OSGi service to a JNDI name.
|
List<String> |
contexts()
List all JNDI sub-contexts.
|
List<String> |
contexts(String name)
List the JNDI sub-context from a given context.
|
void |
create(String name)
Create a sub-context.
|
void |
delete(String name)
Delete a sub-context.
|
org.osgi.framework.BundleContext |
getBundleContext() |
org.apache.aries.proxy.ProxyManager |
getProxyManager() |
Map<String,String> |
names()
List the current JNDI names (with the bound class name).
|
Map<String,String> |
names(String name)
List the current JNDI names in the given context.
|
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setProxyManager(org.apache.aries.proxy.ProxyManager proxyManager) |
void |
unbind(String name)
Unbind an existing name.
|
public Map<String,String> names() throws Exception
JndiServicenames in interface JndiServiceExceptionpublic Map<String,String> names(String name) throws Exception
JndiServicenames in interface JndiServicename - the JNDI context.Exceptionpublic List<String> contexts() throws Exception
JndiServicecontexts in interface JndiServiceExceptionpublic List<String> contexts(String name) throws Exception
JndiServicecontexts in interface JndiServicename - the base JNDI context.Exceptionpublic void create(String name) throws Exception
JndiServicecreate in interface JndiServicename - the new sub-context name to create.Exceptionpublic void delete(String name) throws Exception
JndiServicedelete in interface JndiServicename - the sub-context name to delete.Exceptionpublic void bind(long serviceId,
String name)
throws Exception
JndiServicebind in interface JndiServiceserviceId - the OSGi service ID.name - the JNDI name.Exceptionpublic void alias(String name, String alias) throws Exception
JndiServicealias in interface JndiServicename - the JNDI name.alias - the alias.Exceptionpublic void unbind(String name) throws Exception
JndiServiceunbind in interface JndiServicename - the JNDI name to unbind.Exceptionpublic org.osgi.framework.BundleContext getBundleContext()
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public org.apache.aries.proxy.ProxyManager getProxyManager()
public void setProxyManager(org.apache.aries.proxy.ProxyManager proxyManager)
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.