org.apache.camel.guice.jndi
Class JndiBindings

java.lang.Object
  extended by org.apache.camel.guice.jndi.JndiBindings

public final class JndiBindings
extends Object

Version:

Method Summary
static void bindInjectorAndBindings(Context context, com.google.inject.Injector injector, Properties jndiNames)
          Binds the given injector and its binding providers to the given JNDI context using this mapping mechanism.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 to
injector - the injector used to find the bindings
Throws:
NamingException


Apache Camel