Search in sources :

Example 1 with JSFManagedBeanProcessor

use of org.jboss.as.jsf.deployment.JSFManagedBeanProcessor in project wildfly by wildfly.

the class JSFSubsystemAdd method performBoottime.

@Override
protected void performBoottime(OperationContext context, ModelNode operation, final ModelNode model) throws OperationFailedException {
    final String defaultJSFSlot = JSFResourceDefinition.DEFAULT_JSF_IMPL_SLOT.resolveModelAttribute(context, model).asString();
    context.addStep(new AbstractDeploymentChainStep() {

        protected void execute(DeploymentProcessorTarget processorTarget) {
            processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, Phase.PARSE, Phase.PARSE_JSF_VERSION, new JSFVersionProcessor(defaultJSFSlot));
            processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, Phase.PARSE, Phase.PARSE_JSF_SHARED_TLDS, new JSFSharedTldsProcessor());
            processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, Phase.PARSE, Phase.PARSE_JSF_MANAGED_BEANS, new JSFManagedBeanProcessor());
            processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, Phase.PARSE, Phase.PARSE_JSF_METADATA, new JSFMetadataProcessor());
            processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, Phase.DEPENDENCIES, Phase.DEPENDENCIES_JSF, new JSFDependencyProcessor());
            processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, Phase.POST_MODULE, Phase.POST_MODULE_JSF_MANAGED_BEANS, new JSFManagedBeanProcessor());
            processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, Phase.POST_MODULE, Phase.POST_MODULE_JSF_CDI_EXTENSIONS, new JSFCdiExtensionDeploymentProcessor());
            processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, Phase.INSTALL, Phase.INSTALL_JSF_ANNOTATIONS, new JSFAnnotationProcessor());
            processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, Phase.INSTALL, Phase.INSTALL_JSF_VALIDATOR_FACTORY, new JSFBeanValidationFactoryProcessor());
        }
    }, OperationContext.Stage.RUNTIME);
}
Also used : JSFVersionProcessor(org.jboss.as.jsf.deployment.JSFVersionProcessor) JSFMetadataProcessor(org.jboss.as.jsf.deployment.JSFMetadataProcessor) JSFDependencyProcessor(org.jboss.as.jsf.deployment.JSFDependencyProcessor) DeploymentProcessorTarget(org.jboss.as.server.DeploymentProcessorTarget) JSFSharedTldsProcessor(org.jboss.as.jsf.deployment.JSFSharedTldsProcessor) JSFManagedBeanProcessor(org.jboss.as.jsf.deployment.JSFManagedBeanProcessor) JSFCdiExtensionDeploymentProcessor(org.jboss.as.jsf.deployment.JSFCdiExtensionDeploymentProcessor) AbstractDeploymentChainStep(org.jboss.as.server.AbstractDeploymentChainStep) JSFAnnotationProcessor(org.jboss.as.jsf.deployment.JSFAnnotationProcessor) JSFBeanValidationFactoryProcessor(org.jboss.as.jsf.deployment.JSFBeanValidationFactoryProcessor)

Aggregations

JSFAnnotationProcessor (org.jboss.as.jsf.deployment.JSFAnnotationProcessor)1 JSFBeanValidationFactoryProcessor (org.jboss.as.jsf.deployment.JSFBeanValidationFactoryProcessor)1 JSFCdiExtensionDeploymentProcessor (org.jboss.as.jsf.deployment.JSFCdiExtensionDeploymentProcessor)1 JSFDependencyProcessor (org.jboss.as.jsf.deployment.JSFDependencyProcessor)1 JSFManagedBeanProcessor (org.jboss.as.jsf.deployment.JSFManagedBeanProcessor)1 JSFMetadataProcessor (org.jboss.as.jsf.deployment.JSFMetadataProcessor)1 JSFSharedTldsProcessor (org.jboss.as.jsf.deployment.JSFSharedTldsProcessor)1 JSFVersionProcessor (org.jboss.as.jsf.deployment.JSFVersionProcessor)1 AbstractDeploymentChainStep (org.jboss.as.server.AbstractDeploymentChainStep)1 DeploymentProcessorTarget (org.jboss.as.server.DeploymentProcessorTarget)1