Package org.jboss.aop

Examples of org.jboss.aop.MethodInfo


   @Deprecated
   protected MethodInfo getMethodInfo(Method method)
   {
      long hash = MethodHashing.calculateHash(method);
      MethodInfo info = getAdvisor().getMethodInfo(hash);
      if (info == null)
      {
         throw new RuntimeException("Could not resolve beanClass method from proxy call: " + method.toString());
      }
      return info;
View Full Code Here


      indent++;
      long[] keys = advisor.getMethodInterceptors().keys();
      for (int i = 0; i < keys.length; i++)
      {
         long key = keys[i];
         MethodInfo method = advisor.getMethodInfo(key);
         System.out.println("info " + method + " for " + key);
         @SuppressWarnings("unchecked")
         HashMap methodCallers = (HashMap) advisor.getMethodCalledByMethodInterceptors().get(key);
         @SuppressWarnings("unchecked")
         HashMap conCallers = (HashMap) advisor.getConCalledByMethodInterceptors().get(key);
         if (method == null && methodCallers == null) continue;
         if (method != null && methodCallers == null && (method.getInterceptors() == null || method.getInterceptors().length < 1)) continue;
         indenter(pw, indent);
         pw.println("<method signature=\"" + method.getMethod().toString() + "\">");
         if (method != null)
         {
            Interceptor[] chain = method.getInterceptors();
            if (chain != null && chain.length > 0)
            {
               outputChain(indent + 1, pw, chain);
            }
         }
View Full Code Here

         return ia;
      }
     
      public MethodInfo getMethodInfo(Advisor advisor)
      {
         MethodInfo info = new MethodInfo(clazz, advisedHash, unadvisedHash, advisor);
         info.setInterceptors(interceptors);
         return info;
      }
View Full Code Here

         String args = "null";
        
         String name = null;
         if (isAdvised)
         {
            MethodInfo info = advisor.getMethodInfo(hash.longValue());
            Method originalMethod = info.getUnadvisedMethod();
            name = originalMethod.getName();
         }
         else
         {
            name = m.getName();
View Full Code Here

   }
  
   @Override
   public MethodInfo getMethodInfo(long hash)
   {
      MethodInfo info = (MethodInfo)methodInfosMap.get(hash);
      return info;
   }
View Full Code Here

         /*
          * Obtain the target method (advised)
          */
         Method actualMethod = method.toMethod(this.getClassloader());
         long hash = MethodHashing.calculateHash(actualMethod);
         MethodInfo info = getAdvisor().getMethodInfo(hash);
         if (info == null)
         {
            throw new RuntimeException("Method invocation via Proxy could not be found handled for EJB "
                  + this.getEjbName() + " : " + method.toString()
                  + ", probable error in virtual method registration w/ Advisor for the Container");
         }
         Method unadvisedMethod = info.getUnadvisedMethod();
         SerializableMethod unadvisedSerializableMethod = new SerializableMethod(unadvisedMethod);

         // Obtain Invocation Handler
         //TODO Ugly, use polymorphism and get Session ID for SFSB only
         assert Proxy.isProxyClass(proxy.getClass());
View Full Code Here

      ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
      pushEnc();
      try
      {
         long hash = MethodHashing.calculateHash(method);
         MethodInfo info = getAdvisor().getMethodInfo(hash);
         if (info == null)
         {
            throw new RuntimeException(
                    "Could not resolve beanClass method from proxy call: "
                            + method.toString());
View Full Code Here

      try
      {
         AllowedOperationsAssociation.pushInMethodFlag(AllowedOperationsFlags.IN_EJB_TIMEOUT);
         try
         {
            MethodInfo info = super.getMethodInfo(timeout);
            EJBContainerInvocation nextInvocation = new EJBContainerInvocation(info);
            nextInvocation.setAdvisor(getAdvisor());
            nextInvocation.setArguments(args);
            nextInvocation.invokeNext();
         }
View Full Code Here

      long start = System.currentTimeMillis();
     
      ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
      try
      {
         MethodInfo info = getMethodInfo(method);
         Method unadvisedMethod = info.getUnadvisedMethod();

         try
         {
            invokeStats.callIn();
           
View Full Code Here

         long methodHash = si.getMethodHash();
         log.debug("Received dynamic invocation for method with hash: " + methodHash);

         // Get the Method via MethodInfo from the Advisor
         Advisor advisor = this.getAdvisor();
         MethodInfo info = advisor.getMethodInfo(methodHash);
         Method unadvisedMethod = info.getMethod();
         SerializableMethod unadvisedMethodSerializable = new SerializableMethod(unadvisedMethod);
        
         try
         {
            invokeStats.callIn();
View Full Code Here

TOP

Related Classes of org.jboss.aop.MethodInfo

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.