|
|||||||||
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 | |
---|---|
java.util.Set |
getAllSafeClassNames()
This method returns all the class names in the safe java files. |
MethodSpecification |
getAllSafeMethodsForClass(java.lang.Class aClass)
Gets the method specification for the specified Class |
static SafeJavaRepository |
getInstance()
|
static SafeJavaRepository |
getInstance(boolean initialized)
|
void |
registerSafeJavaFile(java.util.List<java.io.File> files)
This method re-initialize the safe java method repository from the given file . |
void |
restoreSafeJavaRepository(java.util.Map repository)
This method should only be used for testing ONLY. |
java.util.Map |
switchSafeJavaRepository(java.io.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(java.util.List<java.io.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(java.lang.Class aClass)
Class
aClass
- the Class
for which public java.util.Set getAllSafeClassNames()
public java.util.Map switchSafeJavaRepository(java.io.File file)
file
- public void restoreSafeJavaRepository(java.util.Map repository)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |