org.ops4j.pax.wicket.api
Class InjectorHolder

java.lang.Object
  extended by org.ops4j.pax.wicket.api.InjectorHolder

public final class InjectorHolder
extends Object

A simple singleton class storing and retrieving PaxWicketInjectors. The getInjector() method only works in an PaxWicket-Enabled integration context.


Method Summary
static PaxWicketInjector getInjector()
          Retrieves the InjectionHolder responsible for the active Application.
static void setInjector(String applicationName, PaxWicketInjector newInjector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInjector

public static PaxWicketInjector getInjector()
Retrieves the InjectionHolder responsible for the active Application. Therefore this will only work in an active Wicket context!


setInjector

public static void setInjector(String applicationName,
                               PaxWicketInjector newInjector)


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.