|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectariba.util.fieldtype.SafeJavaRepository
public class SafeJavaRepository
A singleton class that acts as a repository for storing information about Java safeness for Expr-based expression.
| Method Summary | |
|---|---|
Set |
getAllSafeClassNames()
This method returns all the class names in the safe java files. |
MethodSpecification |
getAllSafeMethodsForClass(Class aClass)
Gets the method specification for the specified Class |
static SafeJavaRepository |
getInstance()
|
static SafeJavaRepository |
getInstance(boolean initialized)
|
void |
registerSafeJavaFile(List<File> files)
This method re-initialize the safe java method repository from the given file. |
void |
restoreSafeJavaRepository(Map repository)
This method should only be used for testing ONLY. |
Map |
switchSafeJavaRepository(File file)
This method should only be used for testing ONLY. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SafeJavaRepository getInstance()
public static SafeJavaRepository getInstance(boolean initialized)
public void registerSafeJavaFile(List<File> files)
file. The file can be a directory or a CSV file.
If it is a directory, then it will look up SafeJava.csv files located
under this directory.
files - - list of files. The file can be directory.public MethodSpecification getAllSafeMethodsForClass(Class aClass)
Class
aClass - the Class for which public Set getAllSafeClassNames()
public Map switchSafeJavaRepository(File file)
file - public void restoreSafeJavaRepository(Map repository)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||