@Override public final Configuration getConfiguration(RuleLoaderContext ruleLoaderContext) { return ConfigurationBuilder.begin() .addRule() .when(this) .perform(this); }
@Override public ConfigurationRuleBuilder otherwise(Operation operation) { for (ConfigurationRuleBuilderInterceptor interceptor : interceptors) { operation = interceptor.otherwise(operation); } wrapped.addOtherwiseRule(rule) .when(Not.any(rule)) .perform(operation); return this; }
@Override public ConfigurationRuleBuilder otherwise(Operation operation) { for (ConfigurationRuleBuilderInterceptor interceptor : interceptors) { operation = interceptor.otherwise(operation); } wrapped.addOtherwiseRule(rule) .when(Not.any(rule)) .perform(operation); return this; }
@Override public Configuration getConfiguration(RuleLoaderContext ruleLoaderContext) { return ConfigurationBuilder.begin() .addRule() .when(SourceMode.isDisabled()) .perform(new DecompileCondition()) .addRule() .when(SourceMode.isDisabled()) .perform(new CleanFromMultipleSourceFiles()); } // @formatter:on
@Override public Configuration getConfiguration(RuleLoaderContext ruleLoaderContext) { return ConfigurationBuilder.begin() .addRule() .when(SourceMode.isDisabled()) .perform(new DecompileCondition()) .addRule() .when(SourceMode.isDisabled()) .perform(new CleanFromMultipleSourceFiles()); } // @formatter:on
@Override public Configuration getConfiguration(RuleLoaderContext ruleLoaderContext) { ConditionBuilder applicationReportFound = Query.fromType(ApplicationReportModel.class); AbstractIterationOperation<ApplicationReportModel> addToApplicationIndex = new AddToApplicationIndex(); return ConfigurationBuilder.begin() .addRule() .when(applicationReportFound) .perform(addToApplicationIndex); }
@Override public Configuration getConfiguration(RuleLoaderContext ruleLoaderContext) { return ConfigurationBuilder.begin() .addRule() .when(Query.fromType(JspSourceFileModel.class)) .perform(new ParseSourceOperation()); } // @formatter:on
@Override public Configuration getConfiguration(RuleLoaderContext ruleLoaderContext) { ConditionBuilder applicationReportFound = Query.fromType(ApplicationReportModel.class); AbstractIterationOperation<ApplicationReportModel> addToApplicationIndex = new AddToApplicationIndex(); return ConfigurationBuilder.begin() .addRule() .when(applicationReportFound) .perform(addToApplicationIndex); }
@Override public final Configuration getConfiguration(RuleLoaderContext ruleLoaderContext) { return ConfigurationBuilder.begin() .addRule() .when(when()) .perform(new IterationOperation()); } }
@Override public Configuration getConfiguration(RuleLoaderContext ruleLoaderContext) { return ConfigurationBuilder.begin() .addRule() .when(SourceMode.isDisabled()) .perform(new CreateDependencyGraphReportOperation()); }
@Override public Configuration getConfiguration(GraphContext context) { return ConfigurationBuilder.begin() .addRule() .when(Query.fromType(JavaSourceFileModel.class)) .perform(new IndexJavaFileIterationOperator()); }
@Override public Configuration getConfiguration(RuleLoaderContext ruleLoaderContext) { return ConfigurationBuilder.begin() .addRule() .when(new ProcessingIsOnlineGraphCondition().and(Query.fromType(XmlFileModel.class))) .perform(new ValidateAndRegisterClassification()); }
@Override public Configuration getConfiguration(RuleLoaderContext ruleLoaderContext) { return ConfigurationBuilder.begin() .addRule() .when(new ProcessingIsOnlineGraphCondition().and(Query.fromType(XmlFileModel.class))) .perform(new ValidateAndRegisterClassification()); }
@Override public Configuration getConfiguration(ServletContext t) { return ConfigurationBuilder.begin() .addRule() .when(Direction.isInbound().and(Path.matches("/"))) .perform(Redirect.temporary("/starter.jsf")); }
@Override public Configuration getConfiguration(RuleLoaderContext ruleLoaderContext) { return ConfigurationBuilder.begin() .addRule() .when(Query.fromType(JavaSourceFileModel.class)) .perform(new IndexJavaFileIterationOperator() .and(Commit.every(100)) .and(IterationProgress.monitoring("Index Java Source Files", 250))); }
@Override public Configuration getConfiguration(RuleLoaderContext ruleLoaderContext) { return ConfigurationBuilder.begin() .addRule() .when(Query.fromType(JavaSourceFileModel.class)) .perform(new IndexJavaFileIterationOperator() .and(Commit.every(100)) .and(IterationProgress.monitoring("Index Java Source Files", 250))); }
@Override public Configuration getConfiguration(GraphContext context) { return ConfigurationBuilder.begin() .addRule() .when(Query.fromType(JavaSourceFileModel.class)) .perform(new ParseSourceOperation() .and(IterationProgress.monitoring("Analyzed Java File: ", 250)) .and(Commit.every(10))); } // @formatter:on
@Override public Configuration getConfiguration(RuleLoaderContext ruleLoaderContext) { return ConfigurationBuilder.begin() .addRule() .when(Query.fromType(FileModel.class)) .perform(new CacheFileModelPrettyPathRuleProvider.GetPrettyPathIterationOperator() .and(Commit.every(5000)) .and(IterationProgress.monitoring("Caching FileModel Path Information", 2000))); }
@Override public Configuration getConfiguration(RuleLoaderContext ruleLoaderContext) { return ConfigurationBuilder.begin() .addRule() .when(Query.fromType(WindupConfigurationModel.class).withProperty(WindupConfigurationModel.CSV_MODE, true)) .perform( Iteration.over(Iteration.DEFAULT_VARIABLE_LIST_STRING).perform( new ExportCSVReportOperation()).endIteration()); } // @formatter:on
@Override public Configuration getConfiguration(GraphContext context) { return ConfigurationBuilder.begin().addRule() .when(Query.fromType(ArchiveModel.class).excludingType(IgnoredArchiveModel.class)) .perform(UnzipArchiveToOutputFolder.unzip() .and(IterationProgress.monitoring("Unzipped archive: ", 1)) .and(Commit.every(1)) ); } }