Class AnalyzerTaskProvider
java.lang.Object
org.apache.sling.feature.analyser.task.AnalyzerTaskProvider
public final class AnalyzerTaskProvider extends Object
-
Method Summary
Modifier and Type Method Description static AnalyserTask[]
getTasks()
Get all tasks.static AnalyserTask[]
getTasksByClassName(String... taskClassNames)
Get tasks from class namesstatic AnalyserTask[]
getTasksByIds(Set<String> includes, Set<String> excludes)
Get all tasks and obey the includes/excludes rules.
-
Method Details
-
getTasks
Get all tasks. CallsgetTasksByIds(null, null)
.- Returns:
- The analyser tasks, array is never
null
but might be empty
-
getTasksByIds
Get all tasks and obey the includes/excludes rules. If both includes and excludes are null, method behaves likegetTasks()
- Parameters:
includes
- includes can be null, means "include everything"excludes
- excludes can be null, means "do not exclude anything"- Returns:
- The analyser tasks, array is never
null
but might be empty - Throws:
IllegalStateException
- If an included task is not found
-
getTasksByClassName
Get tasks from class names- Parameters:
taskClassNames
- The array of class names- Returns:
- The analyser tasks, array is never
null
but might be empty - Throws:
IOException
- If class names is null or loading fails
-