public interface JndiService
| 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 context)
List the JNDI sub-context from a given context.
|
void |
create(String context)
Create a sub-context.
|
void |
delete(String context)
Delete a sub-context.
|
Map<String,String> |
names()
List the current JNDI names (with the bound class name).
|
Map<String,String> |
names(String context)
List the current JNDI names in the given context.
|
void |
unbind(String name)
Unbind an existing name.
|
Map<String,String> names() throws Exception
ExceptionMap<String,String> names(String context) throws Exception
context - the JNDI context.ExceptionList<String> contexts() throws Exception
ExceptionList<String> contexts(String context) throws Exception
context - the base JNDI context.Exceptionvoid create(String context) throws Exception
context - the new sub-context name to create.Exceptionvoid delete(String context) throws Exception
context - the sub-context name to delete.Exceptionvoid alias(String name, String alias) throws Exception
name - the JNDI name.alias - the alias.Exceptionvoid bind(long serviceId,
String name)
throws Exception
serviceId - the OSGi service ID.name - the JNDI name.ExceptionCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.