Tabnine Logo
InvocationHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
InvocationHandler
in
org.jboss.wsf.spi.invocation

Best Java code snippets using org.jboss.wsf.spi.invocation.InvocationHandler (Showing top 6 results out of 315)

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/jbossws-framework

public Context getJNDIContext()
{
 Context retVal = null;
 
 try
 {
   retVal = getInvocationHandler().getJNDIContext(this);
 }
 catch (NamingException e)
 {
   log.error("JNDI not available neither in JSE environment nor in SAR archives.", e);
 }
 
 return retVal;
}
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.cxf/jbossws-cxf-server

private Invocation createInvocation(InvocationHandler invHandler, Object serviceObject, Endpoint ep, Method m, Object[] paramArray) {
 Invocation inv = invHandler.createInvocation();
 InvocationContext invContext = inv.getInvocationContext();
 WebServiceContext wsCtx = new WebServiceContextImpl(null);
 invContext.addAttachment(WebServiceContext.class, wsCtx);
 invContext.setTargetBean(serviceObject);
 inv.setJavaMethod(m);
 inv.setArgs(paramArray);
 return inv;
}
origin: org.jboss.ws.native/jbossws-native-core

invHandler.invoke(endpoint, inv);
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);
 }
}
org.jboss.wsf.spi.invocationInvocationHandler

Javadoc

Handles invocations on endpoints.

Most used methods

  • init
    Initilize the invocation handler
  • invoke
    Invoke the the service endpoint
  • createInvocation
    Create a container specific invocation
  • getJNDIContext

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • putExtra (Intent)
  • setContentView (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now