org.openbp.jaspira.propertybrowser.editor
Class PropertyEditorMgr

java.lang.Object
  extended by org.openbp.jaspira.propertybrowser.editor.PropertyEditorMgr

public final class PropertyEditorMgr
extends java.lang.Object

Manager class that keeps track of property editors and packages that may contain editors.

Author:
Andreas Putz

Method Summary
 void addPackage(java.lang.String pkg)
          Adds a package.
 java.lang.Class findPropertyEditor(java.lang.String className)
          Looks up the specified property editor.
 java.lang.Class findPropertyValidator(java.lang.String className)
          Looks up the specified property validator.
static PropertyEditorMgr getInstance()
          Gets the singleton instance of this class.
static void reset()
          Resets the loaded classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PropertyEditorMgr getInstance()
Gets the singleton instance of this class.


reset

public static void reset()
Resets the loaded classes.


addPackage

public void addPackage(java.lang.String pkg)
Adds a package.

Parameters:
pkg - The package to add

findPropertyEditor

public java.lang.Class findPropertyEditor(java.lang.String className)
Looks up the specified property editor. The method will search all packages added by addPackage(java.lang.String) and return the editor class if it could be found in one of the packages.

Parameters:
className - Unqualified name of the class
Returns:
The editor class (a PropertyEditor) or null if no such editor could be found

findPropertyValidator

public java.lang.Class findPropertyValidator(java.lang.String className)
Looks up the specified property validator. The method will search all packages added by addPackage(java.lang.String) and return the validator class if it could be found in one of the packages.

Parameters:
className - Unqualified name of the class
Returns:
The validator class (a PropertyValidator) or null if no such validator could be found


Copyright © 2011. All Rights Reserved.