Class AppContextGetter


  • public class AppContextGetter
    extends Object
    • Constructor Detail

      • AppContextGetter

        public AppContextGetter()
    • Method Detail

      • getPropertyDefaultContextName

        public static String getPropertyDefaultContextName​(Class<? extends DefaultPropertyAppBase> appClass)
        For PropertyDefaultApp, the context should be the 2rd, i.e. index of 1.
        Parameters:
        appClass - user-defined app class object.
        Returns:
        the base class name.
      • getDefaultContextName

        public static String getDefaultContextName​(Class<? extends DefaultAppBase> appClass)
        For ProjectedDefaultApp, the context should be the index 4
        Parameters:
        appClass - user-defined app class object.
        Returns:
        the base class name.
      • getParallelContextName

        public static String getParallelContextName​(Class<? extends ParallelAppBase> appClass)
        For ProjectedDefaultApp, the context should be the 2rd, i.e. index of 1.
        Parameters:
        appClass - user-defined app class object.
        Returns:
        the base class name.
      • getParallelPropertyContextName

        public static String getParallelPropertyContextName​(Class<? extends ParallelPropertyAppBase> appClass)
        For parallel property app ,the index of context type in template is 1.
        Parameters:
        appClass - user-defined app class object.
        Returns:
        the corresponding class name.
      • getContextName

        public static String getContextName​(Object obj)