org.apache.camel.guice.impl
Class GuiceInjector

java.lang.Object
  extended by org.apache.camel.guice.impl.GuiceInjector
All Implemented Interfaces:
Injector

public class GuiceInjector
extends Object
implements Injector

An injector which uses Guice to perform the dependency injection of types

Version:
$Revision: 2987 $

Constructor Summary
GuiceInjector(com.google.inject.Injector injector)
           
 
Method Summary
<T> T
newInstance(Class<T> type)
           
<T> T
newInstance(Class<T> type, Object instance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiceInjector

public GuiceInjector(com.google.inject.Injector injector)
Method Detail

newInstance

public <T> T newInstance(Class<T> type)
Specified by:
newInstance in interface Injector

newInstance

public <T> T newInstance(Class<T> type,
                         Object instance)
Specified by:
newInstance in interface Injector


Apache CAMEL