public class DefaultInjector extends Object implements Injector
Injector which just uses reflection to
instantiate new objects using their zero argument constructor,
and then performing bean post processing using DefaultCamelBeanPostProcessor.
For more complex implementations try the Spring or Guice implementations.ReflectionInjector| Constructor and Description |
|---|
DefaultInjector(CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
<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
|
public DefaultInjector(CamelContext context)
public <T> T newInstance(Class<T> type)
InjectornewInstance in interface Injectortype - the type of object to createpublic <T> T newInstance(Class<T> type, Object instance)
InjectornewInstance in interface Injectortype - the type of object to createinstance - an instance of the type to createCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.