Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.jboss.as.jaxrs.deployment;
  
  import static org.jboss.as.jaxrs.JaxrsMessages.MESSAGES;
  
  
  import java.util.List;
 import java.util.Set;

Author(s):
Bill Burke
 
 public class ResteasyDeploymentData {
     private boolean scanAll;
     private boolean scanResources;
     private boolean scanProviders;
     private boolean dispatcherCreated;
     private final Set<StringscannedResourceClasses = new LinkedHashSet<String>();
     private final Set<StringscannedProviderClasses = new LinkedHashSet<String>();
     private Class<? extends ApplicationscannedApplicationClass;
     private boolean bootClasses;
     private boolean unwrappedExceptionsParameterSet;
     private final Set<StringscannedJndiComponentResources = new LinkedHashSet<String>();

    
Merges a list of additional JAX-RS deployment data with this lot of deployment data.

Parameters:
deploymentData
 
     public void merge(final List<ResteasyDeploymentDatadeploymentDatathrows DeploymentUnitProcessingException {
         Class<? extends Applicationapplication = null;
         for (ResteasyDeploymentData data : deploymentData) {
             if (! &&  == null) {
                 if (data.getScannedApplicationClass() != null) {
                     if (application != null) {
                         throw .moreThanOneApplicationClassFound(applicationdata.getScannedApplicationClass());
                     }
                     application = data.getScannedApplicationClass();
                 }
             }
             if () {
                 .addAll(data.getScannedResourceClasses());
             }
             if () {
                 .addAll(data.getScannedProviderClasses());
             }
         }
         if ( == null) {
              = application;
         }
     }
 
 
         return ;
     }
 
     public boolean isDispatcherCreated() {
         return ;
     }
 
     public void setDispatcherCreated(boolean dispatcherCreated) {
         this. = dispatcherCreated;
     }
 
     public Class<? extends ApplicationgetScannedApplicationClass() {
         return ;
     }
 
     public void setScannedApplicationClass(Class<? extends ApplicationscannedApplicationClass) {
         this. = scannedApplicationClass;
     }
 
     public boolean hasBootClasses() {
         return ;
     }
 
     public void setBootClasses(boolean bootClasses) {
         this. = bootClasses;
     }
 
     public boolean shouldScan() {
         return  ||  || ;
     }
 
     public boolean isScanAll() {
         return ;
     }
 
     public void setScanAll(boolean scanAll) {
         if (scanAll) {
              = true;
              = true;
         }
         this. = scanAll;
     }
    public boolean isScanResources() {
        return ;
    }
    public void setScanResources(boolean scanResources) {
        this. = scanResources;
    }
    public boolean isScanProviders() {
        return ;
    }
    public void setScanProviders(boolean scanProviders) {
        this. = scanProviders;
    }
    public Set<StringgetScannedResourceClasses() {
        return ;
    }
    public Set<StringgetScannedProviderClasses() {
        return ;
    }
    public boolean isUnwrappedExceptionsParameterSet() {
        return ;
    }
    public void setUnwrappedExceptionsParameterSet(boolean unwrappedExceptionsParameterSet) {
        this. = unwrappedExceptionsParameterSet;
    }
New to GrepCode? Check out our FAQ X