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: 14050 $

Constructor Summary
SpringInjector(ConfigurableApplicationContext applicationContext)
           
 
Method Summary
 int getAutowireMode()
           
 boolean isDependencyCheck()
           
<T> T
newInstance(Class<T> type)
          Instantiates a new instance of the given type possibly injecting values into the object in the process
<T> T
newInstance(Class<T> type, Object instance)
          Instantiates a new instance of the given object type possibly injecting values into the object in the process
 void setAutowireMode(int autowireMode)
           
 void setDependencyCheck(boolean dependencyCheck)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringInjector

public SpringInjector(ConfigurableApplicationContext applicationContext)
Method Detail

newInstance

public <T> T newInstance(Class<T> type)
Description copied from interface: Injector
Instantiates a new instance of the given type possibly injecting values into the object in the process

Specified by:
newInstance in interface Injector
Parameters:
type - the type of object to create
Returns:
a newly created instance

newInstance

public <T> T newInstance(Class<T> type,
                         Object instance)
Description copied from interface: Injector
Instantiates a new instance of the given object type possibly injecting values into the object in the process

Specified by:
newInstance in interface Injector
instance - an instance of the type to create
Returns:
a newly created instance

getAutowireMode

public int getAutowireMode()

setAutowireMode

public void setAutowireMode(int autowireMode)

isDependencyCheck

public boolean isDependencyCheck()

setDependencyCheck

public void setDependencyCheck(boolean dependencyCheck)


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.