Package org.jboss.dependency.spi.dispatch

Examples of org.jboss.dependency.spi.dispatch.InvokeDispatchContext


   {
      ClassLoader result = Thread.currentThread().getContextClassLoader();
      if (context instanceof InvokeDispatchContext)
      {
         ClassLoader cl = null;
         InvokeDispatchContext invokeContext = (InvokeDispatchContext) context;
         try
         {
            cl = invokeContext.getClassLoader();
         }
         catch (Throwable t)
         {
            if (log.isTraceEnabled())
               log.trace("Not setting classloader for " + context.getName() + " reason:" + context);
View Full Code Here


  
   protected ClassLoader getClassLoader(Object name)
   {
      ControllerContext ctx = getControllerContext(name);
      assertNotNull(ctx);
      InvokeDispatchContext dispatch = assertInstanceOf(ctx, InvokeDispatchContext.class, true);
      try
      {
         ClassLoader result = dispatch.getClassLoader();
         assertNotNull(result);
         return result;
      }
      catch (AssertionFailedError e)
      {
View Full Code Here

     
      Object result = null;
     
      if (factoryContext instanceof InvokeDispatchContext)
      {
         InvokeDispatchContext idc = (InvokeDispatchContext) factoryContext;
         result = idc.invoke(method, getParameterValues(valueContext, factoryContext), getParameterTypes(valueContext, factoryContext));
      }
      else
      {
         throw new IllegalArgumentException(
               "Cannot use property attribute, context is not InvokeDispatchContext: " + factoryContext +
View Full Code Here

   {
      ClassLoader result = Thread.currentThread().getContextClassLoader();
      if (context instanceof InvokeDispatchContext)
      {
         ClassLoader cl = null;
         InvokeDispatchContext invokeContext = (InvokeDispatchContext) context;
         try
         {
            cl = invokeContext.getClassLoader();
         }
         catch (Throwable t)
         {
            if (log.isTraceEnabled())
               log.trace("Not setting classloader for " + context.getName() + " reason:" + context);
View Full Code Here

TOP

Related Classes of org.jboss.dependency.spi.dispatch.InvokeDispatchContext

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.