Example usage for org.apache.wicket.injection Injector inject

List of usage examples for org.apache.wicket.injection Injector inject

Introduction

In this page you can find the example usage for org.apache.wicket.injection Injector inject.

Prototype

public abstract void inject(Object object);

Source Link

Document

Injects the specified object.

Usage

From source file:se.inera.axel.webconsole.InjectorHelper.java

License:Open Source License

public static void inject(Object object, ClassLoader classLoader) {
    if (isPaxWicketAvailable(classLoader)) {
        PaxWicketInjector paxWicketInjector = InjectorHolder.getInjector();

        paxWicketInjector.inject(object, object.getClass());
        return;//  ww  w  .j a v  a  2 s. c o  m
    }

    Injector injector = Injector.get();

    if (injector != null) {
        injector.inject(object);
    }
}