Examples of AroundInvokesMetaData


Examples of org.jboss.metadata.ejb.spec.AroundInvokesMetaData

        }
        final ClassIndex componentClass = classIndex.classIndex(component.getComponentClassName());

        final EnterpriseBeanMetaData metaData = component.getDescriptorData();

        AroundInvokesMetaData aroundInvokes = null;
        if (metaData instanceof SessionBeanMetaData) {
            aroundInvokes = ((SessionBeanMetaData) metaData).getAroundInvokes();
        } else if (metaData instanceof MessageDrivenBeanMetaData) {
            aroundInvokes = ((MessageDrivenBeanMetaData) metaData).getAroundInvokes();
        }
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.AroundInvokesMetaData

            return;
        }

        for (InterceptorMetaData interceptor : metaData.getInterceptors()) {
            String interceptorClassName = interceptor.getInterceptorClass();
            AroundInvokesMetaData aroundInvokes = interceptor.getAroundInvokes();
            if (aroundInvokes != null) {
                for (AroundInvokeMetaData aroundInvoke : aroundInvokes) {
                    final InterceptorClassDescription.Builder builder = InterceptorClassDescription.builder();
                    String methodName = aroundInvoke.getMethodName();
                    MethodIdentifier methodIdentifier = MethodIdentifier.getIdentifier(Object.class, methodName, InvocationContext.class);
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.AroundInvokesMetaData

                    interceptorDescription = new InterceptorDescription(interceptor.getInterceptorClass());
                    ejbComponentDescription.addClassInterceptor(interceptorDescription);
                }

                // around-invoke(s) of the interceptor configured (if any) in the deployment descriptor
                AroundInvokesMetaData aroundInvokes = interceptor.getAroundInvokes();
                if (aroundInvokes != null) {
                    for (AroundInvokeMetaData aroundInvoke : aroundInvokes) {
                        String methodName = aroundInvoke.getMethodName();
                        MethodIdentifier methodIdentifier = MethodIdentifier.getIdentifier(Object.class, methodName, new Class<?>[]{InvocationContext.class});
                        // TODO: This constructor for InterceptorMethodDescription needs a review. How does one get hold of the "declaraingClass"
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.AroundInvokesMetaData

         clustered = joverride.clustered;
      else if(soriginal != null && soriginal.clustered != null)
         clustered = soriginal.clustered;
        
      // aroundInvokes (needs to be additive)
      AroundInvokesMetaData overrideAroundInvokes = null;
      AroundInvokesMetaData originalAroundInvokes = null;
      if(joverride != null)
         overrideAroundInvokes = joverride.getAroundInvokes();
      if(soriginal != null)
         originalAroundInvokes = soriginal.getAroundInvokes();
      if(overrideAroundInvokes != null || originalAroundInvokes != null)
      {
         if(aroundInvokes == null)
            aroundInvokes = new AroundInvokesMetaData();
         aroundInvokes.merge(overrideAroundInvokes, originalAroundInvokes);
      }
   }
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.AroundInvokesMetaData

   {
      AroundInvokeMetaData metaData = create(method);
      if(metaData == null)
         return;

      AroundInvokesMetaData invokes = bean.getAroundInvokes();
      if(invokes == null)
      {
         invokes = new AroundInvokesMetaData();
         bean.setAroundInvokes(invokes);
      }
      invokes.add(metaData);
   }
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.AroundInvokesMetaData

      return false;     
   }

   private void initialiseAroundInvoke(Map<String, List<Method>> methodMap)
   {
      AroundInvokesMetaData aroundInvokes = null;
//    if(beanMetaData instanceof JBossGenericBeanMetaData)
//       aroundInvokes = ((JBossGenericBeanMetaData) beanMetaData).getAroundInvokes();
      if(beanMetaData instanceof JBossMessageDrivenBeanMetaData)
         aroundInvokes = ((JBossMessageDrivenBeanMetaData) beanMetaData).getAroundInvokes();
      else if(beanMetaData instanceof JBossSessionBeanMetaData)
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.AroundInvokesMetaData

                    interceptorDescription = new InterceptorDescription(interceptor.getInterceptorClass());
                    ejbComponentDescription.addClassInterceptor(interceptorDescription);
                }

                // around-invoke(s) of the interceptor configured (if any) in the deployment descriptor
                AroundInvokesMetaData aroundInvokes = interceptor.getAroundInvokes();
                if (aroundInvokes != null) {
                    for (AroundInvokeMetaData aroundInvoke : aroundInvokes) {
                        String methodName = aroundInvoke.getMethodName();
                        MethodIdentifier methodIdentifier = MethodIdentifier.getIdentifier(Object.class, methodName, new Class<?>[]{InvocationContext.class});
                        // TODO: This constructor for InterceptorMethodDescription needs a review. How does one get hold of the "declaraingClass"
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.AroundInvokesMetaData

   @Override
   public <A extends Annotation> A retrieveAnnotation(Class<A> annotationClass, JBossEnterpriseBeanMetaData beanMetaData, ClassLoader classLoader, DeclaredMethodSignature method)
   {
      if(annotationClass == AroundInvoke.class)
      {
         AroundInvokesMetaData aroundInvokes = null;
//         if(beanMetaData instanceof JBossGenericBeanMetaData)
//            aroundInvokes = ((JBossGenericBeanMetaData) beanMetaData).getAroundInvokes();
         if(beanMetaData instanceof JBossMessageDrivenBeanMetaData)
            aroundInvokes = ((JBossMessageDrivenBeanMetaData) beanMetaData).getAroundInvokes();
         else if(beanMetaData instanceof JBossSessionBeanMetaData)
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.AroundInvokesMetaData

      }
   }
  
   private void initialiseAroundInvoke(List<DeclaredMethodSignature> methods)
   {
      AroundInvokesMetaData aroundInvokes = null;
//    if(beanMetaData instanceof JBossGenericBeanMetaData)
//       aroundInvokes = ((JBossGenericBeanMetaData) beanMetaData).getAroundInvokes();
      if(beanMetaData instanceof JBossMessageDrivenBeanMetaData)
         aroundInvokes = ((JBossMessageDrivenBeanMetaData) beanMetaData).getAroundInvokes();
      else if(beanMetaData instanceof JBossSessionBeanMetaData)
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.AroundInvokesMetaData

      }
   }
  
   private void initialiseAroundInvoke(List<DeclaredMethodSignature> methods)
   {
      AroundInvokesMetaData aroundInvokes = null;
//    if(beanMetaData instanceof JBossGenericBeanMetaData)
//       aroundInvokes = ((JBossGenericBeanMetaData) beanMetaData).getAroundInvokes();
      if(beanMetaData instanceof JBossMessageDrivenBeanMetaData)
         aroundInvokes = ((JBossMessageDrivenBeanMetaData) beanMetaData).getAroundInvokes();
      else if(beanMetaData instanceof JBossSessionBeanMetaData)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.