Package org.jboss.wsf.spi.invocation

Examples of org.jboss.wsf.spi.invocation.InvocationContext


   {
      try
      {
         Object targetBean = getTargetBean(ep, epInv);

         InvocationContext invContext = epInv.getInvocationContext();
         if (targetBean instanceof ServiceLifecycle)
         {
            ServletEndpointContext sepContext = invContext.getAttachment(ServletEndpointContext.class);
            if (sepContext != null)
               ((ServiceLifecycle)targetBean).init(sepContext);
         }

         try
View Full Code Here


   {
   }

   protected Object getTargetBean(Endpoint ep, Invocation epInv)
   {
      InvocationContext invCtx = epInv.getInvocationContext();
      Object targetBean = invCtx.getTargetBean();
      if (targetBean == null)
      {
         try
         {
            Class epImpl = ep.getTargetBeanClass();
            targetBean = epImpl.newInstance();
            invCtx.setTargetBean(targetBean);
         }
         catch (Exception ex)
         {
            throw new IllegalStateException("Canot get target bean instance", ex);
         }
View Full Code Here

   {
      try
      {
         Object targetBean = getTargetBean(ep, epInv);

         InvocationContext invContext = epInv.getInvocationContext();
         WebServiceContext wsContext = invContext.getAttachment(WebServiceContext.class);
         if (wsContext != null)
         {

            ResourceInjector injector = resourceInjectorFactory.newResourceInjector();
            injector.inject(targetBean, wsContext);
View Full Code Here

TOP

Related Classes of org.jboss.wsf.spi.invocation.InvocationContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.