KIE EAP - Maven plugin 6.1.0.Final

org.kie.integration.eap.maven.scanner
Class EAPStaticModulesScanner

java.lang.Object
  extended by org.kie.integration.eap.maven.scanner.EAPStaticModulesScanner
All Implemented Interfaces:
EAPModulesScanner
Direct Known Subclasses:
EAPBaseModulesScanner

@Component(role=EAPModulesScanner.class,
           hint="static")
public class EAPStaticModulesScanner
extends Object
implements EAPModulesScanner


Field Summary
protected  EAPArtifactsHolder artifactsHolder
           
protected  boolean artifactTreeResolved
           
protected  EAPLayer layer
           
protected  org.apache.maven.plugin.logging.Log logger
           
protected  boolean scanResources
           
protected  boolean scanStaticDependencies
           
 
Constructor Summary
EAPStaticModulesScanner()
           
 
Method Summary
protected  EAPArtifactResource addResource(EAPModule module, org.apache.maven.model.Model moduleModel, org.apache.maven.model.Dependency moduleDependency)
           
protected  void addStaticDependencies(EAPModule module, org.apache.maven.model.Model moduleModel, String moduleDependenciesRaw, Collection<org.sonatype.aether.artifact.Artifact> exclusions)
           
protected  void addStaticDistributionDependencies(EAPModule result)
           
protected  void checkModuleProperties(Properties moduleProperties, String moduleArtifactCoordinates)
           
protected  String createExclusion(org.sonatype.aether.artifact.Artifact moduleArtifact)
           
protected  EAPModule createModule(org.sonatype.aether.artifact.Artifact moduleArtifact, Collection<org.sonatype.aether.artifact.Artifact> exclusions)
           
protected  EAPModule createModuleInstance(org.sonatype.aether.artifact.Artifact artifact, String moduleName, String moduleLocation, String moduleSlot, Properties moduleProperties)
           
 String getModuleTypeSupported()
          Returns the module type that supports this scanner implementation.
 boolean isArtifactTreeResolved()
           
protected  boolean isModuleExcluded(org.sonatype.aether.artifact.Artifact module, Collection<org.sonatype.aether.artifact.Artifact> exclusions)
           
 boolean isScanResources()
           
 boolean isScanStaticDependencies()
           
 EAPLayer scan(String layerName, Collection<org.sonatype.aether.artifact.Artifact> moduleArtifacts, Collection<org.sonatype.aether.artifact.Artifact> exclusions, EAPArtifactsHolder artifactsHolder)
          Scan the module descriptors and generate model module definitions for a single layer.
 void setArtifactTreeResolved(boolean artifactTreeResolved)
           
 void setBaseModulesLayer(EAPLayer baseModulesLayer)
           
 void setDistributionStaticDependencies(Collection<EAPStaticDistributionModuleDependency> dependencies)
          Set the static dependencies at distribution level.
 void setLogger(org.apache.maven.plugin.logging.Log logger)
           
 void setScanResources(boolean scanResources)
          Set it to scan module resources too.
 void setScanStaticDependencies(boolean scanStaticDependencies)
          Set if static dependency properties must be scanned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

artifactsHolder

protected EAPArtifactsHolder artifactsHolder

layer

protected EAPLayer layer

logger

protected org.apache.maven.plugin.logging.Log logger

scanResources

protected boolean scanResources

scanStaticDependencies

protected boolean scanStaticDependencies

artifactTreeResolved

protected boolean artifactTreeResolved
Constructor Detail

EAPStaticModulesScanner

public EAPStaticModulesScanner()
Method Detail

scan

public EAPLayer scan(String layerName,
                     Collection<org.sonatype.aether.artifact.Artifact> moduleArtifacts,
                     Collection<org.sonatype.aether.artifact.Artifact> exclusions,
                     EAPArtifactsHolder artifactsHolder)
              throws EAPModulesDefinitionException,
                     EAPModuleDefinitionException
Description copied from interface: EAPModulesScanner
Scan the module descriptors and generate model module definitions for a single layer.

Specified by:
scan in interface EAPModulesScanner
Parameters:
layerName - The name for the layer to scan.
moduleArtifacts - The collection of pom module artifacts.
artifactsHolder - The resolved artifacts for this project.
Returns:
The layer scanned.
Throws:
EAPModulesDefinitionException - Exception in a single module loading.
EAPModuleDefinitionException - Exception loading module definitions.

createExclusion

protected String createExclusion(org.sonatype.aether.artifact.Artifact moduleArtifact)
                          throws IOException,
                                 org.codehaus.plexus.util.xml.pull.XmlPullParserException
Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

createModule

protected EAPModule createModule(org.sonatype.aether.artifact.Artifact moduleArtifact,
                                 Collection<org.sonatype.aether.artifact.Artifact> exclusions)
                          throws EAPModuleDefinitionException
Throws:
EAPModuleDefinitionException

addStaticDistributionDependencies

protected void addStaticDistributionDependencies(EAPModule result)

checkModuleProperties

protected void checkModuleProperties(Properties moduleProperties,
                                     String moduleArtifactCoordinates)
                              throws EAPModuleDefinitionException
Throws:
EAPModuleDefinitionException

getModuleTypeSupported

public String getModuleTypeSupported()
Description copied from interface: EAPModulesScanner
Returns the module type that supports this scanner implementation.

Specified by:
getModuleTypeSupported in interface EAPModulesScanner
Returns:
The module type that supports this scanner implementation.

createModuleInstance

protected EAPModule createModuleInstance(org.sonatype.aether.artifact.Artifact artifact,
                                         String moduleName,
                                         String moduleLocation,
                                         String moduleSlot,
                                         Properties moduleProperties)

isModuleExcluded

protected boolean isModuleExcluded(org.sonatype.aether.artifact.Artifact module,
                                   Collection<org.sonatype.aether.artifact.Artifact> exclusions)

addStaticDependencies

protected void addStaticDependencies(EAPModule module,
                                     org.apache.maven.model.Model moduleModel,
                                     String moduleDependenciesRaw,
                                     Collection<org.sonatype.aether.artifact.Artifact> exclusions)
                              throws EAPModuleDefinitionException
Throws:
EAPModuleDefinitionException

addResource

protected EAPArtifactResource addResource(EAPModule module,
                                          org.apache.maven.model.Model moduleModel,
                                          org.apache.maven.model.Dependency moduleDependency)
                                   throws org.sonatype.aether.resolution.ArtifactResolutionException,
                                          EAPModuleResourceDuplicationException
Throws:
org.sonatype.aether.resolution.ArtifactResolutionException
EAPModuleResourceDuplicationException

setLogger

public void setLogger(org.apache.maven.plugin.logging.Log logger)

isScanResources

public boolean isScanResources()

setScanResources

public void setScanResources(boolean scanResources)
Description copied from interface: EAPModulesScanner
Set it to scan module resources too.

Specified by:
setScanResources in interface EAPModulesScanner

isArtifactTreeResolved

public boolean isArtifactTreeResolved()

setArtifactTreeResolved

public void setArtifactTreeResolved(boolean artifactTreeResolved)

setBaseModulesLayer

public void setBaseModulesLayer(EAPLayer baseModulesLayer)

isScanStaticDependencies

public boolean isScanStaticDependencies()

setScanStaticDependencies

public void setScanStaticDependencies(boolean scanStaticDependencies)
Description copied from interface: EAPModulesScanner
Set if static dependency properties must be scanned.

Specified by:
setScanStaticDependencies in interface EAPModulesScanner
Parameters:
scanStaticDependencies - if static dependency properties must be scanned.

setDistributionStaticDependencies

public void setDistributionStaticDependencies(Collection<EAPStaticDistributionModuleDependency> dependencies)
Description copied from interface: EAPModulesScanner
Set the static dependencies at distribution level.

Specified by:
setDistributionStaticDependencies in interface EAPModulesScanner
Parameters:
dependencies - The static dependencies for this distribution.

KIE EAP - Maven plugin 6.1.0.Final

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.