Package org.pentaho.di.laf
Class LAFDelegate<E extends Handler>
java.lang.Object
org.pentaho.di.laf.LAFDelegate<E>
- Type Parameters:
E
-
A factory delegate for a specific kind of LAFHandler
- Author:
- dhushon
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeHandler
(E handler) void
loadListeners
(HashSet<LAFChangeListener<E>> listeners) newHandlerInstance
(String classname) load a concrete Handler for a given Interface (by String classname) if the class is not instantiable, will fallback to default, and then fallback to an abstract implementation.protected void
registerChangeListener
(LAFChangeListener<E> listener) void
unregisterChangeListener
(LAFChangeListener<E> listener) unregister a @see LAFChangeListener from the Map which will prevent notification on @see Handler change
-
Constructor Details
-
LAFDelegate
-
-
Method Details
-
newHandlerInstance
load a concrete Handler for a given Interface (by String classname) if the class is not instantiable, will fallback to default, and then fallback to an abstract implementation. Will always return non-null.- Parameters:
classname
-- Returns:
- Throws:
ClassNotFoundException
-
registerChangeListener
-
unregisterChangeListener
unregister a @see LAFChangeListener from the Map which will prevent notification on @see Handler change- Parameters:
listener
-
-
getListeners
-
loadListeners
-
changeHandler
-
notifyListeners
protected void notifyListeners() -
getHandler
-