本文整理了Java中org.jboss.windup.config.query.Query.fromType
方法的一些代码示例,展示了Query.fromType
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.fromType
方法的具体详情如下:
包路径:org.jboss.windup.config.query.Query
类名称:Query
方法名:fromType
[英]Begin this Query with all WindupVertexFrame instances of the given type.
[中]
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-api
@Override
public ConditionBuilder when()
{
return Query.fromType(ArchiveModel.class);
}
代码示例来源:origin: org.jboss.windup.rules.apps/rules-java
@Override
public ConditionBuilder when()
{
return Query.fromType(ArchiveModel.class);
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee
@Override
public ConditionBuilder when()
{
return Query.fromType(EjbSessionBeanModel.class);
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee
@Override
public ConditionBuilder when()
{
return Query.fromType(SpringBeanModel.class);
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee
@Override
public ConditionBuilder when()
{
return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "jboss-web");
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee
@Override
public ConditionBuilder when()
{
return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "process-definition");
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee
@Override
public ConditionBuilder when()
{
return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "weblogic-web-app");
}
代码示例来源:origin: org.jboss.windup.rules.apps/rules-java-ee
@Override
public ConditionBuilder when()
{
return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "ejb-jar");
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee
@Override
public ConditionBuilder when()
{
return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, DATASOURCES_ROOT_TAG);
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee
@Override
public ConditionBuilder when()
{
return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "beans");
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee
@Override
public ConditionBuilder when()
{
return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "web-app").withProperty(XmlFileModel.FILE_NAME, QueryPropertyComparisonType.NOT_EQUALS, "geronimo-web.xml");
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee
@Override
public ConditionBuilder when()
{
return Query.fromType(XmlFileModel.class).withProperty(FileModel.FILE_NAME, "ibm-webservices-ext.xmi")
.withProperty(XmlFileModel.ROOT_TAG_NAME, "WsExtension");
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee
@Override
public ConditionBuilder when()
{
return Query.fromType(XmlFileModel.class).withProperty(FileModel.FILE_NAME, "ibm-ejb-jar-bnd.xmi")
.withProperty(XmlFileModel.ROOT_TAG_NAME, "EJBJarBinding");
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee
@Override
public ConditionBuilder when()
{
return Query.fromType(XmlFileModel.class).withProperty(XmlFileModel.ROOT_TAG_NAME, "jboss").withProperty(FileModel.FILE_NAME, "jboss.xml");
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-api
@Override
public ConditionBuilder when()
{
return Query.fromType(FileModel.class).withProperty(FileModel.IS_DIRECTORY, false)
.withProperty(FileModel.FILE_PATH, QueryPropertyComparisonType.REGEX,
".*\\.properties$");
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee
@Override
public Configuration getConfiguration(RuleLoaderContext ruleLoaderContext)
{
return ConfigurationBuilder.begin()
.addRule()
.when(Query.fromType(JspSourceFileModel.class))
.perform(new ParseSourceOperation());
}
// @formatter:on
代码示例来源:origin: org.jboss.windup.reporting/windup-reporting-api
@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);
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-xml-impl
@Override
public Configuration getConfiguration(RuleLoaderContext ruleLoaderContext)
{
return ConfigurationBuilder.begin()
.addRule()
.when(new ProcessingIsOnlineGraphCondition().and(Query.fromType(XmlFileModel.class)))
.perform(new ValidateAndRegisterClassification());
}
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-api
@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)));
}
代码示例来源:origin: org.jboss.windup.rules.apps/rules-java
@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))
);
}
}
内容来源于网络,如有侵权,请联系作者删除!