Class JarReflection


  • public class JarReflection
    extends Object
    This class is responsible for making the reflection on the classes inside the current classloader.
    Author:
    Diego N. da Silveira
    • Constructor Detail

      • JarReflection

        public JarReflection()
    • Method Detail

      • getClassesForPackage

        public List<Class<?>> getClassesForPackage​(org.apache.maven.project.MavenProject project)
        Gets the package class list.
        Returns:
        List of classes present in the classloader.
      • getTranslateForDescription

        public org.json.JSONObject getTranslateForDescription​(org.apache.maven.project.MavenProject project,
                                                              String role,
                                                              String translationPath,
                                                              String culture)
                                                       throws IOException
        Gets the description for Roles.
        Parameters:
        project - maven project
        role - name of the role
        translationPath - path of translation
        culture - culture
        Returns:
        description.
        Throws:
        IOException
      • generateDescriptionsByLocale

        public org.json.JSONObject generateDescriptionsByLocale​(String path,
                                                                String culture,
                                                                String role)
                                                         throws IOException
        Generates the description by local
        Parameters:
        path -
        culture -
        role -
        Returns:
        result
        Throws:
        IOException