Package de.obqo.decycle.configuration
Class Configuration
- java.lang.Object
-
- de.obqo.decycle.configuration.Configuration
-
public class Configuration extends java.lang.ObjectCentral configuration class for using the Decycle API. A full configuration check would look like thisList<Constraint.Violation> violations = Configuration.builder() .classpath("...") // required .including(...) .excluding(...) .ignoring(...) .slicings(...) .constraints(...) .report(...) .reportTitle(...) .minifyReport(...) .build() .check();However, typically use cases don't need all settings. The minimal configuration isList<Constraint.Violation> violations = Configuration.builder() .classpath("...") .build() .check();and will return all package cycles in the given classpath.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfiguration.ConfigurationBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Configuration.ConfigurationBuilderbuilder()java.util.List<Constraint.Violation>check()Perform a check of the classes in the givenclasspathagainst the configuredconstraintsand writes a report if requested.java.lang.StringtoString()
-
-
-
Method Detail
-
check
public java.util.List<Constraint.Violation> check()
Perform a check of the classes in the givenclasspathagainst the configuredconstraintsand writes a report if requested.- Returns:
- the list of all detected constraint violations (empty if no violations have been detected).
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of this configuration
-
builder
public static Configuration.ConfigurationBuilder builder()
-
-