Class Analyser
- java.lang.Object
-
- org.apache.sling.feature.analyser.Analyser
-
public class Analyser extends Object
-
-
Constructor Summary
Constructors Constructor Description Analyser(Scanner scanner)Create a new analyser with the provided scanner and use all available tasksAnalyser(Scanner scanner, String... taskClassNames)Create a new analyser with the provided scanner and task class namesAnalyser(Scanner scanner, Map<String,Map<String,String>> configurations, String... taskClassNames)Create a new analyser with a provided scanner, task class names and configurationsAnalyser(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 configurationAnalyser(Scanner scanner, Map<String,Map<String,String>> configurations, AnalyserTask... tasks)Create a new analyser with a provided scanner, tasks and configurationsAnalyser(Scanner scanner, Set<String> includes, Set<String> excludes)Create a new analyser with a provided scanner and includes/excludes for the task idsAnalyser(Scanner scanner, AnalyserTask... tasks)Create new analyser with a provided scanner and the tasks to run
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyserResultanalyse(org.apache.sling.feature.Feature feature)Analyse the featureAnalyserResultanalyse(org.apache.sling.feature.Feature feature, org.apache.sling.feature.ArtifactId fwk)Analyse the feature using the provided framework artifactAnalyserResultanalyse(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
-
-
-
Constructor Detail
-
Analyser
public Analyser(Scanner scanner, AnalyserTask... tasks) throws IOException
Create new analyser with a provided scanner and the tasks to run- Parameters:
scanner- The scannertasks- The tasks to run- Throws:
IOException- If setting up the analyser fails
-
Analyser
public Analyser(Scanner scanner, Map<String,Map<String,String>> configurations, AnalyserTask... tasks) throws IOException
Create a new analyser with a provided scanner, tasks and configurations- Parameters:
scanner- The scannerconfigurations- The configurations for the taskstasks- The tasks- Throws:
IOException- If setting up the analyser fails
-
Analyser
public Analyser(Scanner scanner, String... taskClassNames) throws IOException
Create a new analyser with the provided scanner and task class names- Parameters:
scanner- The scannertaskClassNames- The task class names- Throws:
IOException- If setting up the analyser fails
-
Analyser
public Analyser(Scanner scanner, Map<String,Map<String,String>> configurations, String... taskClassNames) throws IOException
Create a new analyser with a provided scanner, task class names and configurations- Parameters:
scanner- The scannerconfigurations- The configurations for the taskstaskClassNames- The task class names- Throws:
IOException- If setting up the analyser fails
-
Analyser
public Analyser(Scanner scanner, Set<String> includes, Set<String> excludes) throws IOException
Create a new analyser with a provided scanner and includes/excludes for the task ids- Parameters:
scanner- The scannerincludes- The includes for the task ids - can benullexcludes- The excludes for the task ids - can benull- Throws:
IOException- If setting up the analyser fails
-
Analyser
public Analyser(Scanner scanner, Map<String,Map<String,String>> configurations, Set<String> includes, Set<String> excludes) throws IOException
Create a new analyser with a provided scanner and includes/excludes for the task ids and configuration- Parameters:
scanner- The scannerconfigurations- The configurations for the tasksincludes- The includes for the task ids - can benullexcludes- The excludes for the task ids - can benull- Throws:
IOException- If setting up the analyser fails
-
Analyser
public Analyser(Scanner scanner) throws IOException
Create a new analyser with the provided scanner and use all available tasks- Parameters:
scanner- The scanner- Throws:
IOException- If setting up the analyser fails
-
-
Method Detail
-
analyse
public AnalyserResult analyse(org.apache.sling.feature.Feature feature) throws Exception
Analyse the feature- Parameters:
feature- The feature to analyse- Returns:
- The analyser result
- Throws:
Exception- If analysing fails
-
analyse
public AnalyserResult analyse(org.apache.sling.feature.Feature feature, org.apache.sling.feature.ArtifactId fwk) throws Exception
Analyse the feature using the provided framework artifact- Parameters:
feature- The feature to analysefwk- The OSGi framework artifact- Returns:
- The analyser result
- Throws:
Exception- If analysing fails
-
analyse
public AnalyserResult analyse(org.apache.sling.feature.Feature feature, org.apache.sling.feature.ArtifactId fwk, org.apache.sling.feature.builder.FeatureProvider featureProvider) throws Exception
Analyse the feature using the provided framework artifact- Parameters:
feature- The feature to analysefwk- The OSGi framework artifactfeatureProvider- Optional provider to resolve features (if required)- Returns:
- The analyser result
- Throws:
Exception- If analysing fails
-
-