org.apache.camel.guice.jndi
Class JndiBindings
java.lang.Object
org.apache.camel.guice.jndi.JndiBindings
public final class JndiBindings
- extends Object
- Version:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bindInjectorAndBindings
public static void bindInjectorAndBindings(Context context,
com.google.inject.Injector injector,
Properties jndiNames)
throws NamingException
- Binds the given injector and its binding providers to the given JNDI
context using this mapping
mechanism.
This will expose all of the bindings providers to JNDI along with any
bindings which are annotated with
JndiBind
or @Named
to
the given JNDI context.
- Parameters:
context
- the context to export objects toinjector
- the injector used to find the bindings
- Throws:
NamingException
Apache Camel