Package com.totvs.tjf.rac.maven.plugin
Class JarReflection
- java.lang.Object
-
- com.totvs.tjf.rac.maven.plugin.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 Summary
Constructors Constructor Description JarReflection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.json.JSONObject
generateDescriptionsByLocale(String path, String culture, String role)
Generates the description by localList<Class<?>>
getClassesForPackage(org.apache.maven.project.MavenProject project)
Gets the package class list.org.json.JSONObject
getTranslateForDescription(org.apache.maven.project.MavenProject project, String role, String translationPath, String culture)
Gets the description for Roles.
-
-
-
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 projectrole
- name of the roletranslationPath
- path of translationculture
- 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
-
-