本文整理了Java中org.jboss.wsf.spi.deployment.Endpoint.setInstanceProvider()
方法的一些代码示例,展示了Endpoint.setInstanceProvider()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Endpoint.setInstanceProvider()
方法的具体详情如下:
包路径:org.jboss.wsf.spi.deployment.Endpoint
类名称: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));
}
}
内容来源于网络,如有侵权,请联系作者删除!