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);
}
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));
}
Aggregations