ariba.util.fieldtype
Class SafeJavaRepository

java.lang.Object
  extended by ariba.util.fieldtype.SafeJavaRepository

public class SafeJavaRepository
extends java.lang.Object

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

getInstance

public static SafeJavaRepository getInstance()

getInstance

public static SafeJavaRepository getInstance(boolean initialized)

registerSafeJavaFile

public void registerSafeJavaFile(java.util.List<java.io.File> files)
This method re-initialize the safe java method repository from the given 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.

Parameters:
files - - list of files. The file can be directory.

getAllSafeMethodsForClass

public MethodSpecification getAllSafeMethodsForClass(java.lang.Class aClass)
Gets the method specification for the specified Class

Parameters:
aClass - the Class for which is obtained
Returns:
the method specification

getAllSafeClassNames

public java.util.Set getAllSafeClassNames()
This method returns all the class names in the safe java files. Caller must not modify the return value.

Returns:
A set of safe class names used in the safe java files.

switchSafeJavaRepository

public java.util.Map switchSafeJavaRepository(java.io.File file)
This method should only be used for testing ONLY.

Parameters:
file -

restoreSafeJavaRepository

public void restoreSafeJavaRepository(java.util.Map repository)
This method should only be used for testing ONLY.



AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.