public class Analyser extends Object
Constructor and Description |
---|
Analyser(Scanner scanner)
Create a new analyser with the provided scanner and use all available tasks
|
Analyser(Scanner scanner,
AnalyserTask... tasks)
Create new analyser with a provided scanner and the tasks to run
|
Analyser(Scanner scanner,
Map<String,Map<String,String>> configurations,
AnalyserTask... tasks)
Create a new analyser with a provided scanner, tasks and configurations
|
Analyser(Scanner scanner,
Map<String,Map<String,String>> configurations,
Set<String> includes,
Set<String> excludes)
Create a new analyser with a provided scanner and includes/excludes for the
task ids and configuration
|
Analyser(Scanner scanner,
Map<String,Map<String,String>> configurations,
String... taskClassNames)
Create a new analyser with a provided scanner, task class names and
configurations
|
Analyser(Scanner scanner,
Set<String> includes,
Set<String> excludes)
Create a new analyser with a provided scanner and includes/excludes for the
task ids
|
Analyser(Scanner scanner,
String... taskClassNames)
Create a new analyser with the provided scanner and task class names
|
Modifier and Type | Method and Description |
---|---|
AnalyserResult |
analyse(org.apache.sling.feature.Feature feature)
Analyse the feature
|
AnalyserResult |
analyse(org.apache.sling.feature.Feature feature,
org.apache.sling.feature.ArtifactId fwk)
Analyse the feature using the provided framework artifact
|
AnalyserResult |
analyse(org.apache.sling.feature.Feature feature,
org.apache.sling.feature.ArtifactId fwk,
org.apache.sling.feature.builder.FeatureProvider featureProvider)
Analyse the feature using the provided framework artifact
|
public Analyser(Scanner scanner, AnalyserTask... tasks) throws IOException
scanner
- The scannertasks
- The tasks to runIOException
- If setting up the analyser failspublic Analyser(Scanner scanner, Map<String,Map<String,String>> configurations, AnalyserTask... tasks) throws IOException
scanner
- The scannerconfigurations
- The configurations for the taskstasks
- The tasksIOException
- If setting up the analyser failspublic Analyser(Scanner scanner, String... taskClassNames) throws IOException
scanner
- The scannertaskClassNames
- The task class namesIOException
- If setting up the analyser failspublic Analyser(Scanner scanner, Map<String,Map<String,String>> configurations, String... taskClassNames) throws IOException
scanner
- The scannerconfigurations
- The configurations for the taskstaskClassNames
- The task class namesIOException
- If setting up the analyser failspublic Analyser(Scanner scanner, Set<String> includes, Set<String> excludes) throws IOException
scanner
- The scannerincludes
- The includes for the task ids - can be null
excludes
- The excludes for the task ids - can be null
IOException
- If setting up the analyser failspublic Analyser(Scanner scanner, Map<String,Map<String,String>> configurations, Set<String> includes, Set<String> excludes) throws IOException
scanner
- The scannerconfigurations
- The configurations for the tasksincludes
- The includes for the task ids - can be null
excludes
- The excludes for the task ids - can be null
IOException
- If setting up the analyser failspublic Analyser(Scanner scanner) throws IOException
scanner
- The scannerIOException
- If setting up the analyser failspublic AnalyserResult analyse(org.apache.sling.feature.Feature feature) throws Exception
feature
- The feature to analyseException
- If analysing failspublic AnalyserResult analyse(org.apache.sling.feature.Feature feature, org.apache.sling.feature.ArtifactId fwk) throws Exception
feature
- The feature to analysefwk
- The OSGi framework artifactException
- If analysing failspublic AnalyserResult analyse(org.apache.sling.feature.Feature feature, org.apache.sling.feature.ArtifactId fwk, org.apache.sling.feature.builder.FeatureProvider featureProvider) throws Exception
feature
- The feature to analysefwk
- The OSGi framework artifactfeatureProvider
- Optional provider to resolve features (if required)Exception
- If analysing failsCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.