Search in sources :

Example 1 with SubClassFinder

use of act.util.SubClassFinder in project actframework by actframework.

the class AppConfigPlugin method foundConfigurator.

@SubClassFinder(callOn = SysEventId.CLASS_LOADED)
public static void foundConfigurator(final Class<? extends AppConfigurator> configuratorClass) {
    final App app = App.instance();
    AppConfigurator configurator = app.getInstance(configuratorClass);
    configurator.app(app);
    configurator.configure();
    app.config()._merge(configurator);
}
Also used : App(act.app.App) SubClassFinder(act.util.SubClassFinder)

Example 2 with SubClassFinder

use of act.util.SubClassFinder in project actframework by actframework.

the class DependencyInjectorBase method discoverDiListener.

@SubClassFinder(value = DependencyInjectionListener.class, callOn = SysEventId.DEPENDENCY_INJECTOR_PROVISIONED)
public static void discoverDiListener(final Class<? extends DependencyInjectionListener> target) {
    App app = App.instance();
    DependencyInjector di = app.injector();
    di.registerDiListener(app.getInstance(target));
}
Also used : App(act.app.App) SubClassFinder(act.util.SubClassFinder)

Aggregations

App (act.app.App)2 SubClassFinder (act.util.SubClassFinder)2