本文整理了Java中org.jboss.wsf.spi.deployment.Endpoint.getInvocationHandler()
方法的一些代码示例,展示了Endpoint.getInvocationHandler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Endpoint.getInvocationHandler()
方法的具体详情如下:
包路径:org.jboss.wsf.spi.deployment.Endpoint
类名称:Endpoint
方法名:getInvocationHandler
[英]Get the endpoint bean invoker
[中]获取端点bean调用程序
代码示例来源:origin: org.jboss.ws/jbossws-framework
public void start(Endpoint ep)
{
if (log.isTraceEnabled())
log.trace("Start: " + ep.getName());
EndpointState state = ep.getState();
if (state != EndpointState.UNDEFINED)
{
log.error("Cannot start endpoint in state: " + state);
}
else
{
if (ep.getEndpointMetrics() != null)
ep.getEndpointMetrics().start();
InvocationHandler invHandler = ep.getInvocationHandler();
if (invHandler == null)
throw new IllegalStateException("Invocation handler not available");
invHandler.init(ep);
ep.setState(EndpointState.STARTED);
}
}
代码示例来源:origin: org.jboss.ws.cxf/jbossws-cxf-server
/**
* This overrides org.apache.cxf.jaxws.AbstractInvoker in order for using the JBossWS integration logic
* to invoke the JBoss AS target bean.
*/
@Override
protected Object performInvocation(Exchange exchange, final Object serviceObject, Method m, Object[] paramArray)
throws Exception
{
Endpoint ep = exchange.get(Endpoint.class);
final InvocationHandler invHandler = ep.getInvocationHandler();
final Invocation inv = createInvocation(invHandler, serviceObject, ep, m, paramArray);
if (factory != null) {
inv.getInvocationContext().setProperty("forceTargetBean", true);
}
Bus threadBus = BusFactory.getThreadDefaultBus(false);
BusFactory.setThreadDefaultBus(disableDepUserDefThreadBus ? null : ep.getAttachment(Bus.class));
setNamespaceContextSelector(exchange);
ClassLoader cl = SecurityActions.getContextClassLoader();
SecurityActions.setContextClassLoader(serviceObject.getClass().getClassLoader());
try {
invHandler.invoke(ep, inv);
return inv.getReturnValue();
} finally {
SecurityActions.setContextClassLoader(cl);
//make sure the right bus is restored after coming back from the endpoint method
BusFactory.setThreadDefaultBus(threadBus);
clearNamespaceContextSelector(exchange);
}
}
代码示例来源:origin: org.jboss.ws/jbossws-common
public void start(Endpoint ep)
{
EndpointState state = ep.getState();
if (state != EndpointState.UNDEFINED)
{
Loggers.DEPLOYMENT_LOGGER.cannotStartEndpoint(state, ep.getName());
}
else
{
if (ep.getEndpointMetrics() != null)
ep.getEndpointMetrics().start();
InvocationHandler invHandler = ep.getInvocationHandler();
if (invHandler == null)
throw Messages.MESSAGES.invocationHandlerNotAvailable(ep.getName());
invHandler.init(ep);
ep.setState(EndpointState.STARTED);
}
}
代码示例来源:origin: org.jboss.ws.native/jbossws-native-core
InvocationHandler invHandler = endpoint.getInvocationHandler();
内容来源于网络,如有侵权,请联系作者删除!