Class MBody


  • public class MBody
    extends java.lang.Object
    The plan mbody.
    • Field Detail

      • MI_NOTFOUND

        protected static final MethodInfo MI_NOTFOUND
      • method

        protected MethodInfo method
        The body as seperate class.
      • clazz

        protected ClassInfo clazz
        The body as seperate class.
      • servicename

        protected java.lang.String servicename
        The body as required service.
      • servicemethodname

        protected java.lang.String servicemethodname
        The body as required service.
      • mapperclass

        protected ClassInfo mapperclass
        The parameter mapper.
      • component

        protected java.lang.String component
        The body as component type.
      • bodymethod

        protected volatile MethodInfo bodymethod
        The body method cached for speed.
      • passedmethod

        protected volatile MethodInfo passedmethod
        The passed method cached for speed.
      • failedmethod

        protected volatile MethodInfo failedmethod
        The failed method cached for speed.
      • abortedmethod

        protected volatile MethodInfo abortedmethod
        The aborted method cached for speed.
      • preconditionmethod

        protected volatile MethodInfo preconditionmethod
        The precondition method cached for speed.
      • contextconditionmethod

        protected volatile MethodInfo contextconditionmethod
        The precondition method cached for speed.
    • Constructor Detail

      • MBody

        public MBody()
        Bean Constructor.
      • MBody

        public MBody​(MethodInfo method,
                     ClassInfo clazz,
                     java.lang.String servicename,
                     java.lang.String servicemethodname,
                     ClassInfo mapperclass,
                     java.lang.String component)
        Create a new mbody.
    • Method Detail

      • getMethod

        public MethodInfo getMethod()
        Get the method.
        Returns:
        The method.
      • setMethod

        public void setMethod​(MethodInfo method)
        Set the method.
        Parameters:
        method - The method to set.
      • getClazz

        public ClassInfo getClazz()
        Get the clazz.
        Returns:
        The clazz.
      • setClazz

        public void setClazz​(ClassInfo clazz)
        Set the clazz.
        Parameters:
        clazz - The clazz to set.
      • getServiceName

        public java.lang.String getServiceName()
        Get the servicename.
        Returns:
        The servicename.
      • setServiceName

        public void setServiceName​(java.lang.String servicename)
        Set the servicename.
        Parameters:
        servicename - The servicename to set.
      • getServiceMethodName

        public java.lang.String getServiceMethodName()
        Get the servicemethodname.
        Returns:
        The servicemethodname.
      • setServiceMethodName

        public void setServiceMethodName​(java.lang.String servicemethodname)
        Set the servicemethodname.
        Parameters:
        servicemethodname - The servicemethodname to set.
      • getMapperClass

        public ClassInfo getMapperClass()
        Get the mapperclass.
        Returns:
        The mapperclass.
      • setMapperclass

        public void setMapperclass​(ClassInfo mapperclass)
        Set the mapperclass.
        Parameters:
        mapperclass - The mapperclass to set.
      • getComponent

        public java.lang.String getComponent()
        Get the component.
        Returns:
        The component.
      • setComponent

        public void setComponent​(java.lang.String component)
        Set the component.
        Parameters:
        component - The component to set.
      • getBodyMethod

        public MethodInfo getBodyMethod​(java.lang.ClassLoader cl)
      • getPassedMethod

        public MethodInfo getPassedMethod​(java.lang.ClassLoader cl)
      • getFailedMethod

        public MethodInfo getFailedMethod​(java.lang.ClassLoader cl)
      • getAbortedMethod

        public MethodInfo getAbortedMethod​(java.lang.ClassLoader cl)
      • getPreconditionMethod

        public MethodInfo getPreconditionMethod​(java.lang.ClassLoader cl)
      • getContextConditionMethod

        public MethodInfo getContextConditionMethod​(java.lang.ClassLoader cl)
      • getMethod

        public static MethodInfo getMethod​(java.lang.Class<?> body,
                                           java.lang.Class<? extends java.lang.annotation.Annotation> type,
                                           java.lang.ClassLoader cl)
      • getLineNumber

        public int getLineNumber​(java.lang.ClassLoader cl)
        Get the line number of the declaration.