Examples of DeploymentStrategy


Examples of org.jboss.seam.deployment.DeploymentStrategy

    public boolean isSchemaValidating() {
        return true;
    }

    public static PluginDeploymentHandler instance() {
        DeploymentStrategy deployment = (DeploymentStrategy) Component.getInstance("deploymentStrategy");
        return (PluginDeploymentHandler) deployment.getDeploymentHandlers().get(NAME);
    }
View Full Code Here

Examples of org.jboss.seam.deployment.DeploymentStrategy

    public List<String> getMessageBundleNames() {
        return messageBundleNames;
    }

    public static PluginI18NDeploymentHandler instance() {
        DeploymentStrategy deployment = (DeploymentStrategy) Component.getInstance("deploymentStrategy");
        return (PluginI18NDeploymentHandler) deployment.getDeploymentHandlers().get(NAME);
    }
View Full Code Here

Examples of org.jboss.seam.deployment.DeploymentStrategy

* @author Christian Bauer
*/
public class AnnotationDeploymentHelper {

    public static Set<Class<?>> getAnnotatedClasses(String annotationFQN) {
        DeploymentStrategy deployment = (DeploymentStrategy) Component.getInstance("deploymentStrategy");
        AnnotationDeploymentHandler handler =
                (AnnotationDeploymentHandler)deployment.getDeploymentHandlers().get(AnnotationDeploymentHandler.NAME);
        return handler.getClassMap().get(annotationFQN);
    }
View Full Code Here

Examples of org.jboss.seam.deployment.DeploymentStrategy

        Collection<Class<?>> annotatedResourceClasses = null;
        if (applicationConfig.isScanProviders() || applicationConfig.isScanResources())
        {
            log.debug("scanning all classes for JAX-RS annotations");

            DeploymentStrategy deployment = (DeploymentStrategy) Component.getInstance("deploymentStrategy");
            AnnotationDeploymentHandler handler =
                    (AnnotationDeploymentHandler) deployment.getDeploymentHandlers().get(AnnotationDeploymentHandler.NAME);

            annotatedProviderClasses = handler.getClassMap().get(javax.ws.rs.ext.Provider.class.getName());
            annotatedResourceClasses = handler.getClassMap().get(javax.ws.rs.Path.class.getName());
        }
View Full Code Here

Examples of org.jboss.seam.deployment.DeploymentStrategy

      dispatcher.getDefaultContextObjects().put(Dispatcher.class, dispatcher);
      Map contextDataMap = SeamResteasyProviderFactory.getContextDataMap();
      contextDataMap.putAll(dispatcher.getDefaultContextObjects());
     
      // Seam can scan the classes for us, we just have to list them in META-INF/seam-deployment.properties
      DeploymentStrategy deployment = (DeploymentStrategy) Component.getInstance("deploymentStrategy");
      AnnotationDeploymentHandler handler =
            (AnnotationDeploymentHandler) deployment.getDeploymentHandlers().get(AnnotationDeploymentHandler.NAME);

      Collection<Class<?>> providers = findProviders(handler);
      Collection<Class<?>> resources = findResources(handler);
      Collection<Component> seamComponents = findSeamComponents();
View Full Code Here

Examples of org.jboss.seam.deployment.DeploymentStrategy

   MessageBrokerManager messageBrokerManager;
   List<Class<?>> scanned = new ArrayList<Class<?>>();

   private AnnotationDeploymentHandler annotationDeploymentHandler() {
      DeploymentStrategy deployment = (DeploymentStrategy) Component.getInstance("deploymentStrategy");                  
     
      if (deployment != null) {
          return (AnnotationDeploymentHandler)
             deployment.getDeploymentHandlers().get(AnnotationDeploymentHandler.NAME);
      }
     
      return null;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.