Search in sources :

Example 1 with Startup

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();
            }
        }
    }
}
Also used : EEModuleClassDescription(org.jboss.as.ee.component.EEModuleClassDescription) Startup(javax.ejb.Startup)

Aggregations

Startup (javax.ejb.Startup)1 EEModuleClassDescription (org.jboss.as.ee.component.EEModuleClassDescription)1