org.jvnet.hk2.component
Class InjectionManager

java.lang.Object
  extended by org.jvnet.hk2.component.InjectionManager

public class InjectionManager
extends java.lang.Object

InjectionManager is responsible for injecting resources into a component. Resources tagged for injection are identified via an annotation which is a parameter type of this class.

Author:
Jerome Dochez

Constructor Summary
InjectionManager()
           
 
Method Summary
 void inject(java.lang.Object component, InjectionResolver... targets)
          Initializes the component by performing injection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectionManager

public InjectionManager()
Method Detail

inject

public void inject(java.lang.Object component,
                   InjectionResolver... targets)
Initializes the component by performing injection.

Parameters:
component - component instance to inject
Throws:
ComponentException - if injection failed for some reason.


Copyright © 2009 Sun Microsystems, Inc.. All Rights Reserved.