public interface IoCInstantiatedComponentProvider extends IoCComponentProvider
The component is instantiated and injected by the underlying IoC framework, but the life-cycle is managed by the runtime according to the life-cycle declared by the runtime's semantics.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getInjectableInstance(java.lang.Object o)
The instance for the runtime to perform injection on.
|
getInstance
java.lang.Object getInjectableInstance(java.lang.Object o)
Some IoC frameworks create proxies that proxy instances of the class to enable, for example, Aspect Oriented Programming, to support cross cutting functionality. If such proxies are returned then any injection of onto fields of the proxy (if any) will not have any effect. The runtime requires access to the proxied instance such that injection onto fields will take effect.
o
- the component instance returned by ComponentProvider.getInstance()
.Copyright © 2016 Oracle Corporation. All Rights Reserved.