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


Java BindingType类代码示例

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


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

示例1: annotatedElementLoaderProvider

import javax.xml.ws.BindingType; //导入依赖的package包/类
@Provides
public static AnnotatedElementLoader annotatedElementLoaderProvider() {
    return new AnnotatedElementLoader() {
        @Override
        protected List<Class<?>> load(
                Class<? extends Annotation> annoClass,
                boolean loadNonPublic,
                boolean loadAbstract
        ) {
            if (annoClass == BindingType.class) {
                if (loadNonPublic && loadAbstract) {
                    return C.list(PublicAnnotated.class, PrivateAnnotated.class, AbstractAnnotated.class);
                }
                if (loadNonPublic) {
                    return C.list(PublicAnnotated.class, PrivateAnnotated.class);
                }
                if (loadAbstract) {
                    return C.list(PublicAnnotated.class, AbstractAnnotated.class);
                }
                return C.<Class<?>>list(PublicAnnotated.class);
            }
            throw E.unsupport();
        }
    };
}
 
开发者ID:osglworks,项目名称:java-di,代码行数:26,代码来源:AnnotatedClasses.java

示例2: parse

import javax.xml.ws.BindingType; //导入依赖的package包/类
/**
 * Figures out the binding from {@link BindingType} annotation.
 *
 * @return
 *      default to {@link BindingID#SOAP11_HTTP}, if no such annotation is present.
 * @see #parse(String)
 */
public static @NotNull BindingID parse(Class<?> implClass) {
    BindingType bindingType = implClass.getAnnotation(BindingType.class);
    if (bindingType != null) {
        String bindingId = bindingType.value();
        if (bindingId.length() > 0) {
            return BindingID.parse(bindingId);
        }
    }
    return SOAP11_HTTP;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:BindingID.java

示例3: isMtomEnabled

import javax.xml.ws.BindingType; //导入依赖的package包/类
protected boolean isMtomEnabled(Class<?> beanClass)
{
   BindingType bindingType = (BindingType)beanClass.getAnnotation(BindingType.class);
   MTOM mtom = (MTOM)beanClass.getAnnotation(MTOM.class);

   boolean mtomEnabled = mtom != null && mtom.enabled();
   if (!mtomEnabled && bindingType != null)
   {
      String binding = bindingType.value();
      mtomEnabled = binding.equals(SOAPBinding.SOAP11HTTP_MTOM_BINDING) || binding.equals(SOAPBinding.SOAP12HTTP_MTOM_BINDING);
   }
   
   return mtomEnabled;
}
 
开发者ID:jbossws,项目名称:jbossws-cxf,代码行数:15,代码来源:MetadataBuilder.java

示例4: attachBindingTypeAnnotation

import javax.xml.ws.BindingType; //导入依赖的package包/类
/**
 * This method will be used to attach @BindingType annotation data to the
 * <code>DescriptionBuilderComposite</code>
 *
 * @param composite - <code>DescriptionBuildercomposite</code>
 */
private void attachBindingTypeAnnotation(DescriptionBuilderComposite composite) {
    BindingType bindingType = (BindingType)ConverterUtils.getAnnotation(
            BindingType.class, serviceClass);
    if (bindingType != null) {
        // Attach @BindingType annotation data
        BindingTypeAnnot btAnnot = BindingTypeAnnot.createBindingTypeAnnotImpl();
        btAnnot.setValue(bindingType.value());
        composite.setBindingTypeAnnot(btAnnot);
    }
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:17,代码来源:JavaClassToDBCConverter.java

示例5: getBindingType

import javax.xml.ws.BindingType; //导入依赖的package包/类
@Override
public String getBindingType() {
    final BindingType bType = getImplementorClass().getAnnotation(BindingType.class);
    if (bType != null) {
        return bType.value();
    }

    if (this.bindingURI != null) {
        return this.bindingURI;
    }

    return SOAPBinding.SOAP11HTTP_BINDING;
}
 
开发者ID:apache,项目名称:tomee,代码行数:14,代码来源:JaxWsImplementorInfoImpl.java

示例6: getBindingUriFromAnn

import javax.xml.ws.BindingType; //导入依赖的package包/类
public static String getBindingUriFromAnn(final Class<?> clazz) {
    final BindingType bindingType = clazz.getAnnotation(BindingType.class);
    if (bindingType != null) {
        return bindingType.value();
    }
    return null;
}
 
开发者ID:apache,项目名称:tomee,代码行数:8,代码来源:JaxWsUtils.java

示例7: getSoapNS

import javax.xml.ws.BindingType; //导入依赖的package包/类
protected String getSoapNS(Class<?> clazz) {
    BindingType bType = clazz.getAnnotation(BindingType.class);
    if (bType != null) {
        if (SOAPBinding.SOAP12HTTP_BINDING.equals(bType.value()))
            return WSDLConstants.NS_SOAP12;
    }
    return WSDLConstants.NS_SOAP11;
}
 
开发者ID:selckin,项目名称:cxf-php-soap-codegen,代码行数:9,代码来源:JavaToPHP.java

示例8: getAnnoBindingType

import javax.xml.ws.BindingType; //导入依赖的package包/类
public BindingType getAnnoBindingType() {
    if (bindingTypeAnnotation == null) {
        bindingTypeAnnotation = composite.getBindingTypeAnnot();
    }
    return bindingTypeAnnotation;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:7,代码来源:EndpointDescriptionImpl.java

示例9: getAnnoBindingType

import javax.xml.ws.BindingType; //导入依赖的package包/类
public BindingType getAnnoBindingType(); 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:2,代码来源:EndpointDescriptionJava.java


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