use of javax.ejb.Startup in project wildfly by wildfly.
the class StartupMergingProcessor method handleAnnotations.
@Override
protected void handleAnnotations(final DeploymentUnit deploymentUnit, final EEApplicationClasses applicationClasses, final DeploymentReflectionIndex deploymentReflectionIndex, final Class<?> componentClass, final SingletonComponentDescription description) throws DeploymentUnitProcessingException {
EEModuleClassDescription clazz = applicationClasses.getClassByName(componentClass.getName());
if (clazz != null) {
final ClassAnnotationInformation<Startup, Object> data = clazz.getAnnotationInformation(Startup.class);
if (data != null) {
if (!data.getClassLevelAnnotations().isEmpty()) {
description.initOnStartup();
description.getModuleDescription().registerStartupBean();
}
}
}
}
Aggregations