|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.picocontainer.injectors.Reinjector
public class Reinjector
A Reinjector allows methods on pre-instantiated classes to be invoked, with appropriately scoped parameters.
| Constructor Summary | |
|---|---|
Reinjector(PicoContainer parentContainer)
Make a reinjector with a parent container from which to pull components to be reinjected to. |
|
Reinjector(PicoContainer parentContainer,
ComponentMonitor monitor)
Make a reinjector with a parent container from which to pull components to be reinjected to |
|
| Method Summary | |
|---|---|
Object |
reinject(Class<?> key,
Class<?> impl,
InjectionFactory reinjectionFactory)
Reinjecting into a method. |
Object |
reinject(Class<?> key,
Class implementation,
Object instance,
InjectionFactory reinjectionFactory)
Reinjecting into a method. |
Object |
reinject(Class<?> key,
Class implementation,
Object instance,
Properties properties,
InjectionFactory reinjectionFactory)
Reinjecting into a method. |
Object |
reinject(Class<?> key,
Enum reinjectionMethodEnum)
Reinjecting into a method. |
Object |
reinject(Class<?> key,
InjectionFactory reinjectionFactory)
Reinjecting into a method. |
Object |
reinject(Class<?> key,
Method reinjectionMethod)
Reinjecting into a method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Reinjector(PicoContainer parentContainer)
parentContainer - the parent container
public Reinjector(PicoContainer parentContainer,
ComponentMonitor monitor)
parentContainer - the parent containermonitor - the monitor to use for 'instantiating' events| Method Detail |
|---|
public Object reinject(Class<?> key,
Method reinjectionMethod)
key - the component-key from the parent set of components to inject intoreinjectionMethod - the reflection method to use for injection.
public Object reinject(Class<?> key,
Enum reinjectionMethodEnum)
key - the component-key from the parent set of components to inject intoreinjectionMethodEnum - the enum for the reflection method to use for injection.
public Object reinject(Class<?> key,
InjectionFactory reinjectionFactory)
key - the component-key from the parent set of components to inject into (key and impl are the same)reinjectionFactory - the InjectionFactory to use for reinjection.
public Object reinject(Class<?> key,
Class<?> impl,
InjectionFactory reinjectionFactory)
key - the component-key from the parent set of components to inject intoimpl - the implementation of the component that is going to result.reinjectionFactory - the InjectionFactory to use for reinjection.
public Object reinject(Class<?> key,
Class implementation,
Object instance,
InjectionFactory reinjectionFactory)
key - the component-key from the parent set of components to inject intoimplementation - the implementation of the component that is going to result.instance - the object that has the provider method to be invokedreinjectionFactory - the InjectionFactory to use for reinjection.
public Object reinject(Class<?> key,
Class implementation,
Object instance,
Properties properties,
InjectionFactory reinjectionFactory)
key - the component-key from the parent set of components to inject intoimplementation - the implementation of the component that is going to result.instance - the object that has the provider method to be invokedproperties - for reinjectionreinjectionFactory - the InjectionFactory to use for reinjection.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||