当前位置: 首页>>代码示例>>Java>>正文


Java ServiceInterfaceEntry类代码示例

本文整理汇总了Java中org.opendaylight.controller.config.yangjmxgenerator.ServiceInterfaceEntry的典型用法代码示例。如果您正苦于以下问题:Java ServiceInterfaceEntry类的具体用法?Java ServiceInterfaceEntry怎么用?Java ServiceInterfaceEntry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ServiceInterfaceEntry类属于org.opendaylight.controller.config.yangjmxgenerator包,在下文中一共展示了ServiceInterfaceEntry类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: serviceInterfaceFromSie

import org.opendaylight.controller.config.yangjmxgenerator.ServiceInterfaceEntry; //导入依赖的package包/类
public static GeneralInterfaceTemplate serviceInterfaceFromSie(
        final ServiceInterfaceEntry sie) {

    final List<String> extendedInterfaces = Lists
            .newArrayList(AbstractServiceInterface.class.getCanonicalName());
    if (sie.getBase().isPresent()) {
        extendedInterfaces.add(sie.getBase().get().getFullyQualifiedName());
    }

    // FIXME header
    final GeneralInterfaceTemplate sieTemplate = new GeneralInterfaceTemplate(
            getHeaderFromEntry(sie), sie.getPackageName(),
            sie.getTypeName(), extendedInterfaces,
            Lists.<MethodDeclaration> newArrayList());
    sieTemplate.setJavadoc(sie.getNullableDescription());

    if (sie.getNullableDescription() != null) {
        sieTemplate.getAnnotations().add(
                Annotation.createDescriptionAnnotation(sie
                        .getNullableDescription()));
    }
    sieTemplate.getAnnotations().addAll(Annotation.createSieAnnotations(sie));

    return sieTemplate;
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:26,代码来源:TemplateFactory.java

示例2: AbstractDependencyAttribute

import org.opendaylight.controller.config.yangjmxgenerator.ServiceInterfaceEntry; //导入依赖的package包/类
public AbstractDependencyAttribute(DataSchemaNode attrNode,
                                   ServiceInterfaceEntry sie, boolean mandatory,
                                   String nullableDescription) {
    super(attrNode);
    dependency = new Dependency(sie, mandatory);
    this.nullableDescription = nullableDescription;
    nullableDefault = null;
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:9,代码来源:AbstractDependencyAttribute.java

示例3: writeSie

import org.opendaylight.controller.config.yangjmxgenerator.ServiceInterfaceEntry; //导入依赖的package包/类
public File writeSie(final ServiceInterfaceEntry sie, final File outputBaseDir) {
    try {
        GeneralInterfaceTemplate generalInterfaceTemplate = TemplateFactory.serviceInterfaceFromSie(sie);
        GeneratedObject go = new GenericGeneratedObjectFactory().toGeneratedObject(generalInterfaceTemplate, COPYRIGHT);
        return go.persist(outputBaseDir).get().getValue();
    } catch (Exception e) {
        String message = "An error occurred during Service interface generating, sie:"
                + sie.getTypeName() + ", " + sie.getFullyQualifiedName();
        LOG.error(message, e);
        throw new RuntimeException(message, e);
    }
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:13,代码来源:CodeWriter.java

示例4: test

import org.opendaylight.controller.config.yangjmxgenerator.ServiceInterfaceEntry; //导入依赖的package包/类
@Test
public void test() throws IOException {
    Map<QName,ServiceInterfaceEntry> serviceInterfaceEntryMap = loadThreadsServiceInterfaceEntries("packages.sis");
    Map<String, ModuleMXBeanEntry> namesToMBEs = loadThreadsJava(serviceInterfaceEntryMap, "packages.pack2");
    ModuleMXBeanEntry dynamicThreadPool = namesToMBEs.get(THREADPOOL_DYNAMIC_MXB_NAME);
    parseGeneratedFile(dynamicThreadPool);

}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:9,代码来源:AbsModuleGeneratedObjectFactoryTest.java

示例5: Dependency

import org.opendaylight.controller.config.yangjmxgenerator.ServiceInterfaceEntry; //导入依赖的package包/类
public Dependency(ServiceInterfaceEntry sie, boolean mandatory) {
    this.sie = sie;
    this.mandatory = mandatory;
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:5,代码来源:Dependency.java

示例6: getSie

import org.opendaylight.controller.config.yangjmxgenerator.ServiceInterfaceEntry; //导入依赖的package包/类
public ServiceInterfaceEntry getSie() {
    return sie;
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:4,代码来源:Dependency.java

示例7: ListDependenciesAttribute

import org.opendaylight.controller.config.yangjmxgenerator.ServiceInterfaceEntry; //导入依赖的package包/类
public ListDependenciesAttribute(final DataSchemaNode attrNode, final ServiceInterfaceEntry sie, final boolean mandatory, final String nullableDescription) {
    super(attrNode, sie, mandatory, nullableDescription);
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:4,代码来源:ListDependenciesAttribute.java

示例8: DependencyAttribute

import org.opendaylight.controller.config.yangjmxgenerator.ServiceInterfaceEntry; //导入依赖的package包/类
public DependencyAttribute(final DataSchemaNode attrNode,
        final ServiceInterfaceEntry sie, final boolean mandatory,
        final String nullableDescription) {
    super(attrNode, sie, mandatory, nullableDescription);
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:6,代码来源:DependencyAttribute.java

示例9: createRequireIfcAnnotation

import org.opendaylight.controller.config.yangjmxgenerator.ServiceInterfaceEntry; //导入依赖的package包/类
public static Annotation createRequireIfcAnnotation(
        ServiceInterfaceEntry sie) {
    String reqIfc = sie.getFullyQualifiedName() + ".class";
    return new Annotation(RequireInterface.class.getCanonicalName(),
            Lists.newArrayList(new Parameter("value", reqIfc)));
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:7,代码来源:Annotation.java


注:本文中的org.opendaylight.controller.config.yangjmxgenerator.ServiceInterfaceEntry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。