org.apache.wicket.injection
Class ComponentInjector

java.lang.Object
  extended by org.apache.wicket.injection.ComponentInjector
All Implemented Interfaces:
IComponentInstantiationListener

public class ComponentInjector
extends java.lang.Object
implements IComponentInstantiationListener

Enables your application to do dependency injection. To use, register the injector as a IComponentInstantiationListener like this:

      ... (in your application's constructor or init method)
      addComponentInstantiationListener(new ComponentInjector());
      ...
 

Author:
Eelco Hillenius
See Also:
IComponentInstantiationListener, Application.addComponentInstantiationListener(org.apache.wicket.application.IComponentInstantiationListener)

Constructor Summary
ComponentInjector()
          Construct.
 
Method Summary
 void onInstantiation(Component component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentInjector

public ComponentInjector()
Construct.

Method Detail

onInstantiation

public void onInstantiation(Component component)
Specified by:
onInstantiation in interface IComponentInstantiationListener
See Also:
IComponentInstantiationListener.onInstantiation(org.apache.wicket.Component)


Copyright © 2004-2009 Apache Software Foundation. All Rights Reserved.