|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.impl.JndiRegistry
public class JndiRegistry
A Registry
implementation which looks up the objects in JNDI
Constructor Summary | |
---|---|
JndiRegistry()
|
|
JndiRegistry(Context context)
|
Method Summary | ||
---|---|---|
void |
bind(String s,
Object o)
|
|
void |
close()
|
|
protected Context |
createContext()
|
|
Context |
getContext()
|
|
Object |
lookup(String name)
Looks up a service in the registry based purely on name, returning the service or null if it could not be found. |
|
|
lookup(String name,
Class<T> type)
Looks up a service in the registry, returning the service or null if it could not be found. |
|
|
lookupByType(Class<T> type)
Looks up services in the registry by their type. |
|
void |
setContext(Context context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JndiRegistry()
public JndiRegistry(Context context)
Method Detail |
---|
public <T> T lookup(String name, Class<T> type)
Registry
lookup
in interface Registry
name
- the name of the servicetype
- the type of the required service
public Object lookup(String name)
Registry
lookup
in interface Registry
name
- the name of the service
public <T> Map<String,T> lookupByType(Class<T> type)
Registry
JndiRegistry
.
lookupByType
in interface Registry
type
- the type of the registered services
public void bind(String s, Object o)
public void close() throws NamingException
NamingException
public Context getContext() throws NamingException
NamingException
public void setContext(Context context)
protected Context createContext() throws NamingException
NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |