Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source.
   * Copyright 2010, Red Hat, Inc., and individual contributors
   * as indicated by the @author tags. See the copyright.txt file in the
   * distribution for a full listing of individual contributors.
   *
   * This is free software; you can redistribute it and/or modify it
   * under the terms of the GNU Lesser General Public License as
   * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the Free
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  */
 
 package org.jboss.as.weld;
 
 import java.util.List;
 
The weld subsystem add update handler.

Author(s):
Stuart Douglas
Emanuel Muckenhuber
 
     public static final int PARSE_CDI_ANNOTATIONS                       = 0x2A10;
     public static final int POST_MODULE_WELD_WEB_INTEGRATION            = 0x0700;
 
     static final WeldSubsystemAdd INSTANCE = new WeldSubsystemAdd();
 
     protected void populateModel(ModelNode operationModelNode model) {
         model.setEmptyObject();
     }
 
     protected void performBoottime(OperationContext contextModelNode operationModelNode modelServiceVerificationHandler verificationHandlerList<ServiceController<?>> newControllers) {
         OperationStepHandler handler = null;
         if (ApplicationServerVersion.isEqualOrNewer(.)) {
             handler = new DeploymentProcessorRegistrar();
         } else {
             handler = new AS711DeploymentRegistrar();
         }
         context.addStep(handler..);
 
         TCCLSingletonService singleton = new TCCLSingletonService();
         newControllers.add(context.getServiceTarget().addService(.singleton).setInitialMode(
                 .).install());
     }
 
     protected boolean requiresRuntimeVerification() {
         return false;
     }

    
The default registrar for Weld deployment processors.

Author(s):
Jozef Hartinger
 
     private static class DeploymentProcessorRegistrar extends AbstractDeploymentChainStep {
         @Override
         protected void execute(DeploymentProcessorTarget processorTarget) {
        }
    }

    
    private static class AS711DeploymentRegistrar extends AbstractDeploymentChainStep {
        @SuppressWarnings("deprecation")
        @Override
        protected void execute(DeploymentProcessorTarget processorTarget) {
            processorTarget.addDeploymentProcessor(.new CdiAnnotationProcessor());
            processorTarget.addDeploymentProcessor(..new LegacyBeansXmlProcessor());
            processorTarget.addDeploymentProcessor(..new WeldDependencyProcessor());
        }
    }
New to GrepCode? Check out our FAQ X