org.jboss.wsf.spi.deployment.Endpoint.setInstanceProvider()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(128)

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

Endpoint.setInstanceProvider介绍

[英]Set instance provider
[中]设置实例提供程序

代码示例

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

@Override
public void stop(final Deployment dep)
{
  for (final Endpoint ep : dep.getService().getEndpoints())
  {
    ep.setInstanceProvider(null);
  }
}

代码示例来源:origin: org.jboss.eap/wildfly-webservices-server-integration

private void setInjectionAwareInstanceProvider(final Endpoint ep) {
  final InstanceProvider stackInstanceProvider = ep.getInstanceProvider();
  final DeploymentUnit unit = ep.getService().getDeployment().getAttachment(DeploymentUnit.class);
  final InstanceProvider injectionAwareInstanceProvider = new InjectionAwareInstanceProvider(stackInstanceProvider, ep, unit);
  ep.setInstanceProvider(injectionAwareInstanceProvider);
}

代码示例来源:origin: org.wildfly/wildfly-webservices-server-integration

private void setInjectionAwareInstanceProvider(final Endpoint ep) {
  final InstanceProvider stackInstanceProvider = ep.getInstanceProvider();
  final DeploymentUnit unit = ep.getService().getDeployment().getAttachment(DeploymentUnit.class);
  final InstanceProvider injectionAwareInstanceProvider = new InjectionAwareInstanceProvider(stackInstanceProvider, ep, unit);
  ep.setInstanceProvider(injectionAwareInstanceProvider);
}

代码示例来源:origin: org.jboss.as/jboss-as-webservices-server-integration

private void setInjectionAwareInstanceProvider(final Endpoint ep) {
  final InstanceProvider stackInstanceProvider = ep.getInstanceProvider();
  final DeploymentUnit unit = ep.getService().getDeployment().getAttachment(DeploymentUnit.class);
  final InstanceProvider injectionAwareInstanceProvider = new InjectionAwareInstanceProvider(stackInstanceProvider, ep, unit);
  ep.setInstanceProvider(injectionAwareInstanceProvider);
}

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

@Override
public void start(final Deployment dep)
{
  for (final Endpoint ep : dep.getService().getEndpoints())
  {
   final Object serviceBean = ep.getAttachment(Object.class);
   org.apache.cxf.endpoint.Endpoint cxfEp = ep.getAttachment(org.apache.cxf.endpoint.Endpoint.class);
   ep.setInstanceProvider(new CXFInstanceProvider(serviceBean, cxfEp));
  }
  setUserEndpointBus(dep);
}

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

@Override
public void start(final Deployment dep)
{
  final ClassLoader loader = dep.getRuntimeClassLoader();
  final ClassLoader integrationCL = ClassLoaderProvider.getDefaultProvider().getServerIntegrationClassLoader();
  final ClassLoader newCL = new DelegateClassLoader(integrationCL, loader);
  for (final Endpoint ep : dep.getService().getEndpoints())
  {
   ep.setInstanceProvider(new NativeInstanceProvider(newCL));
  }
}

相关文章