org.apache.camel.spi
Interface Injector

All Known Implementing Classes:
ReflectionInjector

public interface Injector

A pluggable strategy for creating and possibly dependency injecting objects which could be implemented using straight forward reflection or using Spring or Guice to perform dependency injection.

Version:
$Revision: 569 $

Method Summary
<T> T
newInstance(Class<T> type)
          Instantiates a new instance of the given type possibly injecting values into the object in the process
 

Method Detail

newInstance

<T> T newInstance(Class<T> type)
Instantiates a new instance of the given type possibly injecting values into the object in the process

Parameters:
type - the type of object to create
Returns:
a newly created instance


Copyright © 2009 IONA Open Source Community. All Rights Reserved.