org.jboss.windup.config.query.Query.fromType()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中org.jboss.windup.config.query.Query.fromType方法的一些代码示例,展示了Query.fromType的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.fromType方法的具体详情如下:
包路径:org.jboss.windup.config.query.Query
类名称:Query
方法名:fromType

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))
          );
  }
}

相关文章