org.apache.camel.spring.spi
Class SpringInjector

java.lang.Object
  extended by org.apache.camel.spring.spi.SpringInjector
All Implemented Interfaces:
Injector

public class SpringInjector
extends Object
implements Injector

A Spring implementation of Injector allowing Spring to be used to dependency inject newly created POJOs

Version:
$Revision: 781314 $

Constructor Summary
SpringInjector(org.springframework.context.ConfigurableApplicationContext applicationContext)
           
 
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

SpringInjector

public SpringInjector(org.springframework.context.ConfigurableApplicationContext applicationContext)
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


Copyright © 2009 Apache Software Foundation. All Rights Reserved.