當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。