gpt4 book ai didi

org.jboss.wsf.spi.deployment.integration.WebServiceDeclaration类的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 14:59:05 26 4
gpt4 key购买 nike

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

WebServiceDeclaration介绍

[英]A minimum web service meta data representation that offers a generic way to access more fine grained meta data through #getAnnotation(Class)
[中]一种最小的web服务元数据表示,它提供了一种通过#getAnnotation(类)访问更细粒度元数据的通用方法

代码示例

代码示例来源:origin: org.jboss.ws/jbossws-jboss510x

private boolean isWebServiceBean(WebServiceDeclaration container)
  {
   boolean isWebServiceBean = false;
   boolean isWebService = container.getAnnotation(WebService.class) != null;
   boolean isWebServiceProvider = container.getAnnotation(WebServiceProvider.class) != null;
   isWebServiceBean = isWebService || isWebServiceProvider;

   return isWebServiceBean;
  }
}

代码示例来源:origin: org.jboss.ws/jbossws-jboss510

/**
* Creates new JAXWS EJB3 deployment and registers it with deployment unit.
* 
* @param dep webservice deployment
* @param unit deployment unit
*/
@Override
protected void build(final Deployment dep, final DeploymentUnit unit)
{
 this.getAndPropagateAttachment(WebServiceDeployment.class, unit, dep);
 this.getAndPropagateAttachment(JBossMetaData.class, unit, dep);
 this.log.debug("Creating JAXWS EJB3 endpoints meta data model");
 for (final WebServiceDeclaration container : ASHelper.getJaxwsEjbs(unit))
 {
   final String ejbName = container.getComponentName();
   this.log.debug("EJB3 name: " + ejbName);
   final String ejbClass = container.getComponentClassName();
   this.log.debug("EJB3 class: " + ejbClass);
   final Endpoint ep = this.newEndpoint(ejbClass, ejbName, dep);
   ep.setProperty(ASHelper.CONTAINER_NAME, container.getContainerName());
 }
}

代码示例来源:origin: org.jboss.ws/jbossws-jboss510x

PortComponentSpec pcMetaData = container.getAnnotation(PortComponentSpec.class);
MessageDriven mdbMetaData = container.getAnnotation(MessageDriven.class);
 ejbMetaData.setEjbName(container.getComponentName());
 ejbMetaData.setEjbClass(container.getComponentClassName());

代码示例来源:origin: org.jboss.ws/jbossws-jboss501

/**
* Creates new JBoss agnostic EJB bean meta data model.
*
* @param jbossEjbMD jboss EJB meta data
* @return webservices EJB meta data
*/
private EJBMetaData newEjbMetaData(final WebServiceDeclaration jbossEjbMD)
{
 final MessageDriven mdbAnnotation = jbossEjbMD.getAnnotation(MessageDriven.class);
 if (mdbAnnotation == null)
 {
   this.log.debug("Creating JBoss agnostic EJB3 meta data for session bean: "
      + jbossEjbMD.getComponentClassName());
   return new SLSBMetaData();
 }
 else
 {
   this.log.debug("Creating JBoss agnostic EJB3 meta data for message driven bean: "
      + jbossEjbMD.getComponentClassName());
   final MDBMetaData mdbMD = new MDBMetaData();
   final String destinationName = this.getActivationProperty("destination", mdbAnnotation.activationConfig());
   mdbMD.setDestinationJndiName(destinationName);
   return mdbMD;
 }
}

代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2

final String ejbName = container.getComponentName();

代码示例来源:origin: org.jboss.ws/jbossws-jboss501

/**
* Creates new JAXWS EJB3 deployment and registers it with deployment unit.
* 
* @param dep webservice deployment
* @param unit deployment unit
*/
@Override
protected void build(final Deployment dep, final DeploymentUnit unit)
{
 this.getAndPropagateAttachment(WebServiceDeployment.class, unit, dep);
 this.getAndPropagateAttachment(JBossMetaData.class, unit, dep);
 this.log.debug("Creating JAXWS EJB3 endpoints meta data model");
 for (final WebServiceDeclaration container : ASHelper.getJaxwsEjbs(unit))
 {
   final String ejbName = container.getComponentName();
   this.log.debug("EJB3 name: " + ejbName);
   final String ejbClass = container.getComponentClassName();
   this.log.debug("EJB3 class: " + ejbClass);
   final Endpoint ep = this.newEndpoint(ejbClass, ejbName, dep);
   ep.setProperty(ASHelper.CONTAINER_NAME, container.getContainerName());
 }
}

代码示例来源:origin: org.jboss.ws/jbossws-jboss600x

PortComponentSpec pcMetaData = container.getAnnotation(PortComponentSpec.class);
MessageDriven mdbMetaData = container.getAnnotation(MessageDriven.class);
 ejbMetaData.setEjbName(container.getComponentName());
 ejbMetaData.setEjbClass(container.getComponentClassName());

代码示例来源:origin: org.jboss.ws/jbossws-jboss510

/**
* Creates new JBoss agnostic EJB bean meta data model.
*
* @param jbossEjbMD jboss EJB meta data
* @return webservices EJB meta data
*/
private EJBMetaData newEjbMetaData(final WebServiceDeclaration jbossEjbMD)
{
 final MessageDriven mdbAnnotation = jbossEjbMD.getAnnotation(MessageDriven.class);
 if (mdbAnnotation == null)
 {
   this.log.debug("Creating JBoss agnostic EJB3 meta data for session bean: "
      + jbossEjbMD.getComponentClassName());
   return new SLSBMetaData();
 }
 else
 {
   this.log.debug("Creating JBoss agnostic EJB3 meta data for message driven bean: "
      + jbossEjbMD.getComponentClassName());
   final MDBMetaData mdbMD = new MDBMetaData();
   final String destinationName = this.getActivationProperty("destination", mdbAnnotation.activationConfig());
   mdbMD.setDestinationJndiName(destinationName);
   return mdbMD;
 }
}

代码示例来源:origin: org.jboss.ws/jbossws-jboss501

final String ejbName = container.getComponentName();

代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2

/**
* Creates new JAXWS EJB3 deployment and registers it with deployment unit.
* 
* @param dep webservice deployment
* @param unit deployment unit
*/
@Override
protected void build(final Deployment dep, final DeploymentUnit unit)
{
 this.getAndPropagateAttachment(WebServiceDeployment.class, unit, dep);
 this.getAndPropagateAttachment(JBossMetaData.class, unit, dep);
 this.log.debug("Creating JAXWS EJB3 endpoints meta data model");
 for (final WebServiceDeclaration container : ASHelper.getJaxwsEjbs(unit))
 {
   final String ejbName = container.getComponentName();
   this.log.debug("EJB3 name: " + ejbName);
   final String ejbClass = container.getComponentClassName();
   this.log.debug("EJB3 class: " + ejbClass);
   final Endpoint ep = this.newEndpoint(ejbClass, ejbName, dep);
   ep.setProperty(ASHelper.CONTAINER_NAME, container.getContainerName());
 }
}

代码示例来源:origin: org.jboss.ws/jbossws-jboss500x

PortComponentSpec pcMetaData = container.getAnnotation(PortComponentSpec.class);
MessageDriven mdbMetaData = container.getAnnotation(MessageDriven.class);
 ejbMetaData.setEjbName(container.getComponentName());
 ejbMetaData.setEjbClass(container.getComponentClassName());

代码示例来源:origin: org.jboss.ws/jbossws-jboss501CR1

private boolean isWebServiceBean(WebServiceDeclaration container)
  {
   boolean isWebServiceBean = false;
   boolean isWebService = container.getAnnotation(WebService.class) != null;
   boolean isWebServiceProvider = container.getAnnotation(WebServiceProvider.class) != null;
   isWebServiceBean = isWebService || isWebServiceProvider;

   return isWebServiceBean;
  }
}

代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2

/**
* Creates new JBoss agnostic EJB bean meta data model.
*
* @param jbossEjbMD jboss EJB meta data
* @return webservices EJB meta data
*/
private EJBMetaData newEjbMetaData(final WebServiceDeclaration jbossEjbMD)
{
 final MessageDriven mdbAnnotation = jbossEjbMD.getAnnotation(MessageDriven.class);
 if (mdbAnnotation == null)
 {
   this.log.debug("Creating JBoss agnostic EJB3 meta data for session bean: "
      + jbossEjbMD.getComponentClassName());
   return new SLSBMetaData();
 }
 else
 {
   this.log.debug("Creating JBoss agnostic EJB3 meta data for message driven bean: "
      + jbossEjbMD.getComponentClassName());
   final MDBMetaData mdbMD = new MDBMetaData();
   final String destinationName = this.getActivationProperty("destination", mdbAnnotation.activationConfig());
   mdbMD.setDestinationJndiName(destinationName);
   return mdbMD;
 }
}

代码示例来源:origin: org.jboss.ws/jbossws-jboss510

final String ejbName = container.getComponentName();

代码示例来源:origin: org.jboss.ws/jbossws-jboss501CR1

if (isWebServiceBean(container))
 String ejbName = container.getComponentName();
 String epBean = container.getComponentClassName();
 ep.setShortName(ejbName);
 String containName = container.getContainerName();
 if(null==containName)
   throw new IllegalArgumentException("Target container name not set");

代码示例来源:origin: org.jboss.ws/jbossws-jboss501CR1

PortComponentSpec pcMetaData = container.getAnnotation(PortComponentSpec.class);
MessageDriven mdbMetaData = container.getAnnotation(MessageDriven.class);
 ejbMetaData.setEjbName(container.getComponentName());
 ejbMetaData.setEjbClass(container.getComponentClassName());

代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2

/**
* Returns true if EJB container is webservice endpoint.
* 
* @param ejbContainerAdapter EJB container adapter
* @return true if EJB container is webservice endpoint, false otherwise
*/
public static boolean isWebServiceBean(final WebServiceDeclaration ejbContainerAdapter)
{
 final boolean isWebService = ejbContainerAdapter.getAnnotation(WebService.class) != null;
 final boolean isWebServiceProvider = ejbContainerAdapter.getAnnotation(WebServiceProvider.class) != null;
 return isWebService || isWebServiceProvider;
}

代码示例来源:origin: org.jboss.ws/jbossws-jboss510x

if (isWebServiceBean(container))
 String ejbName = container.getComponentName();
 String epBean = container.getComponentClassName();
 ep.setShortName(ejbName);
 String containName = container.getContainerName();
 if(null==containName)
   throw new IllegalArgumentException("Target container name not set");

代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2

/**
* Builds JBoss agnostic EJB meta data.
* 
* @param wsEjbsMD jboss agnostic EJBs meta data
* @param jbossEjbMD jboss specific EJB meta data
*/
private void buildEnterpriseBeanMetaData(final List<EJBMetaData> wsEjbsMD, final WebServiceDeclaration jbossEjbMD)
{
 final EJBMetaData wsEjbMD = this.newEjbMetaData(jbossEjbMD);
 if (wsEjbMD != null)
 {
   // set EJB name and class
   wsEjbMD.setEjbName(jbossEjbMD.getComponentName());
   wsEjbMD.setEjbClass(jbossEjbMD.getComponentClassName());
   final PortComponentSpec portComponentAnnotation = jbossEjbMD.getAnnotation(PortComponentSpec.class);
   if (portComponentAnnotation != null)
   {
    // set port component meta data
    wsEjbMD.setPortComponentName(portComponentAnnotation.portComponentName());
    wsEjbMD.setPortComponentURI(portComponentAnnotation.portComponentURI());
    // set security meta data
    final EJBSecurityMetaData wsEjbSecurityMD = new EJBSecurityMetaData();
    wsEjbSecurityMD.setAuthMethod(portComponentAnnotation.authMethod());
    wsEjbSecurityMD.setTransportGuarantee(portComponentAnnotation.transportGuarantee());
    wsEjbSecurityMD.setSecureWSDLAccess(portComponentAnnotation.secureWSDLAccess());
    wsEjbMD.setSecurityMetaData(wsEjbSecurityMD);
   }
   wsEjbsMD.add(wsEjbMD);
 }
}

代码示例来源:origin: org.jboss.ws/jbossws-jboss600x

private boolean isWebServiceBean(WebServiceDeclaration container)
  {
   boolean isWebServiceBean = false;
   boolean isWebService = container.getAnnotation(WebService.class) != null;
   boolean isWebServiceProvider = container.getAnnotation(WebServiceProvider.class) != null;
   isWebServiceBean = isWebService || isWebServiceProvider;

   return isWebServiceBean;
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com