org.apache.camel.impl
Class JndiRegistry
java.lang.Object
org.apache.camel.impl.JndiRegistry
- All Implemented Interfaces:
- Registry
public class JndiRegistry
- extends Object
- implements Registry
A Registry
implementation which looks up the objects in JNDI
- Version:
- $Revision: 630591 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JndiRegistry
public JndiRegistry()
JndiRegistry
public JndiRegistry(Context context)
lookup
public <T> T lookup(String name,
Class<T> type)
- Description copied from interface:
Registry
- Looks up a service in the registry, returning the service or null if it could not be found.
- Specified by:
lookup
in interface Registry
- Parameters:
name
- the name of the servicetype
- the type of the required service
- Returns:
- the service from the registry or null if it could not be found
lookup
public Object lookup(String name)
- Description copied from interface:
Registry
- Looks up a service in the registry based purely on name,
returning the service or null if it could not be found.
- Specified by:
lookup
in interface Registry
- Parameters:
name
- the name of the service
- Returns:
- the service from the registry or null if it could not be found
bind
public void bind(String s,
Object o)
close
public void close()
throws NamingException
- Throws:
NamingException
getContext
public Context getContext()
throws NamingException
- Throws:
NamingException
setContext
public void setContext(Context context)
createContext
protected Context createContext()
throws NamingException
- Throws:
NamingException
Copyright © 2009 Apache Software Foundation. All Rights Reserved.