本文整理了Java中org.jboss.wsf.spi.deployment.Endpoint.getLifecycleHandler()
方法的一些代码示例,展示了Endpoint.getLifecycleHandler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Endpoint.getLifecycleHandler()
方法的具体详情如下:
包路径:org.jboss.wsf.spi.deployment.Endpoint
类名称:Endpoint
方法名:getLifecycleHandler
[英]Get the lifecycle handler for this endpoint
[中]获取此终结点的生命周期处理程序
代码示例来源:origin: org.jboss.ws/jbossws-framework
private LifecycleHandler getLifecycleHandler(Endpoint ep, boolean assertHandler)
{
LifecycleHandler lifecycleHandler = ep.getLifecycleHandler();
if (lifecycleHandler == null && assertHandler)
throw new IllegalStateException("LifecycleHandler not initialised");
return lifecycleHandler;
}
代码示例来源:origin: org.jboss.ws/jbossws-common
public void start()
{
endpoint.getLifecycleHandler().start(endpoint);
}
代码示例来源:origin: org.jboss.ws/jbossws-framework
public void start()
{
endpoint.getLifecycleHandler().start(endpoint);
}
代码示例来源:origin: org.jboss.ws/jbossws-framework
public void stop()
{
endpoint.getLifecycleHandler().stop(endpoint);
}
代码示例来源:origin: org.jboss.ws/jbossws-common
public void stop()
{
endpoint.getLifecycleHandler().stop(endpoint);
}
代码示例来源:origin: org.jboss.eap/wildfly-webservices-server-integration
@Override
public void stop(Deployment dep) {
for (final Endpoint ep : dep.getService().getEndpoints()) {
if (ep.getLifecycleHandler() != null) {
ep.getLifecycleHandler().stop(ep);
}
if (stopServices) {
final DeploymentUnit unit = getRequiredAttachment(dep, DeploymentUnit.class);
EndpointService.uninstall(ep, unit);
}
}
}
代码示例来源:origin: org.wildfly/wildfly-webservices-server-integration
@Override
public void stop(Deployment dep) {
for (final Endpoint ep : dep.getService().getEndpoints()) {
if (ep.getLifecycleHandler() != null) {
ep.getLifecycleHandler().stop(ep);
}
if (stopServices) {
final DeploymentUnit unit = getRequiredAttachment(dep, DeploymentUnit.class);
EndpointService.uninstall(ep, unit);
}
}
}
代码示例来源:origin: org.jboss.eap/wildfly-webservices-server-integration
@Override
public void stop(final StopContext context) {
WSLogger.ROOT_LOGGER.stopping(name);
endpoint.getLifecycleHandler().stop(endpoint);
endpoint.setSecurityDomainContext(null);
unregisterEndpoint(endpoint);
final List<RecordProcessor> processors = endpoint.getRecordProcessors();
for (final RecordProcessor processor : processors) {
unregisterRecordProcessor(processor, endpoint);
}
}
代码示例来源:origin: org.wildfly/wildfly-webservices-server-integration
@Override
public void stop(final StopContext context) {
WSLogger.ROOT_LOGGER.stopping(name);
ServiceContainerEndpointRegistry.unregister(aliasName, endpoint);
endpoint.getLifecycleHandler().stop(endpoint);
endpoint.setSecurityDomainContext(null);
unregisterEndpoint(endpoint);
final List<RecordProcessor> processors = endpoint.getRecordProcessors();
for (final RecordProcessor processor : processors) {
unregisterRecordProcessor(processor, endpoint);
}
}
代码示例来源:origin: org.wildfly/wildfly-webservices-server-integration
@Override
public void start(final StartContext context) {
WSLogger.ROOT_LOGGER.starting(name);
final String domainName = (String)endpoint.getProperty(SECURITY_DOMAIN_NAME);
if (isElytronSecurityDomain(endpoint, domainName)) {
if (EndpointType.JAXWS_EJB3.equals(endpoint.getType())) {
endpoint.setSecurityDomainContext(new ElytronSecurityDomainContextImpl(this.ejbApplicationSecurityDomain.get().getSecurityDomain()));
} else {
endpoint.setSecurityDomainContext(new ElytronSecurityDomainContextImpl(this.elytronSecurityDomain.get()));
}
} else {
endpoint.setSecurityDomainContext(new SecurityDomainContextImpl(securityDomainContext.get()));
}
if (EndpointType.JAXWS_EJB3.equals(endpoint.getType())) {
final EJBViewMethodSecurityAttributesService ejbMethodSecurityAttributeService = this.ejbMethodSecurityAttributeService.get();
endpoint.addAttachment(EJBMethodSecurityAttributeProvider.class, new EJBMethodSecurityAttributesAdaptor(ejbMethodSecurityAttributeService));
}
final List<RecordProcessor> processors = endpoint.getRecordProcessors();
for (final RecordProcessor processor : processors) {
registerRecordProcessor(processor, endpoint);
}
final EndpointMetricsFactory endpointMetricsFactory = SPIProvider.getInstance().getSPI(EndpointMetricsFactory.class);
endpoint.setEndpointMetrics(endpointMetricsFactory.newEndpointMetrics());
registerEndpoint(endpoint);
endpoint.getLifecycleHandler().start(endpoint);
ServiceContainerEndpointRegistry.register(aliasName, endpoint);
endpointConsumer.accept(endpoint);
}
代码示例来源:origin: org.jboss.eap/wildfly-webservices-server-integration
@Override
public void start(final StartContext context) throws StartException {
WSLogger.ROOT_LOGGER.starting(name);
final String domainName = (String)endpoint.getProperty(SECURITY_DOMAIN_NAME);
if (isElytronSecurityDomain(endpoint, domainName)) {
if (EndpointType.JAXWS_EJB3.equals(endpoint.getType())) {
endpoint.setSecurityDomainContext(new ElytronSecurityDomainContextImpl(this.ejbApplicationSecurityDomainValue.getValue().getSecurityDomain()));
} else {
endpoint.setSecurityDomainContext(new ElytronSecurityDomainContextImpl(this.elytronSecurityDomain.getValue()));
}
} else {
endpoint.setSecurityDomainContext(new SecurityDomainContextImpl(securityDomainContextValue.getValue()));
}
if (EndpointType.JAXWS_EJB3.equals(endpoint.getType())) {
final EJBViewMethodSecurityAttributesService ejbMethodSecurityAttributeService = ejbMethodSecurityAttributeServiceValue.getValue();
endpoint.addAttachment(EJBMethodSecurityAttributeProvider.class, new EJBMethodSecurityAttributesAdaptor(ejbMethodSecurityAttributeService));
}
final List<RecordProcessor> processors = endpoint.getRecordProcessors();
for (final RecordProcessor processor : processors) {
registerRecordProcessor(processor, endpoint);
}
final EndpointMetricsFactory factory = SPIProvider.getInstance().getSPI(EndpointMetricsFactory.class);
endpoint.setEndpointMetrics(factory.newEndpointMetrics());
registerEndpoint(endpoint);
endpoint.getLifecycleHandler().start(endpoint);
}
内容来源于网络,如有侵权,请联系作者删除!