Examples of AnnotationDeploymentHandler


Examples of org.jboss.seam.deployment.AnnotationDeploymentHandler

*/
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.AnnotationDeploymentHandler

        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());
        }

        log.debug("finding all Seam component classes");
        Map<Class, Component> seamComponents = new HashMap<Class, Component>();
        String[] applicationContextNames = Contexts.getApplicationContext().getNames();
View Full Code Here

Examples of org.jboss.seam.deployment.AnnotationDeploymentHandler

      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.AnnotationDeploymentHandler

   }
  
   private Collection<Class<?>> scannedClasses() {
      Collection<Class<?>> result = null;
     
      AnnotationDeploymentHandler handler = annotationDeploymentHandler();
      if (handler !=null) {
         result = handler.getClassMap().get(FlexRemote.class.getName());
      }
     
      return result != null ? result : new ArrayList<Class<?>>(0);
   }
View Full Code Here

Examples of org.jboss.seam.deployment.AnnotationDeploymentHandler

        // Also scan for hot deployed components
        HotDeploymentStrategy hotDeployment = HotDeploymentStrategy.instance();
        if (hotDeployment != null && hotDeployment.available()) {
            log.info("scanning for hot deployable JAX-RS components");
            AnnotationDeploymentHandler hotDeploymentHandler =
                    (AnnotationDeploymentHandler) hotDeployment
                            .getDeploymentHandlers().get(
                                    AnnotationDeploymentHandler.NAME);
            registerProviders(seamComponents,
                    findProviders(hotDeploymentHandler));
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.