Package org.pentaho.di.laf
Class LAFDelegate<E extends Handler>
- java.lang.Object
-
- org.pentaho.di.laf.LAFDelegate<E>
-
-
Constructor Summary
Constructors Constructor Description LAFDelegate(Class<E> handler, Class<E> defaultHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changeHandler(E handler)
E
getHandler()
HashSet<LAFChangeListener<E>>
getListeners()
void
loadListeners(HashSet<LAFChangeListener<E>> listeners)
E
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
notifyListeners()
E
registerChangeListener(LAFChangeListener<E> listener)
void
unregisterChangeListener(LAFChangeListener<E> listener)
unregister a @see LAFChangeListener from the Map which will prevent notification on @see Handler change
-
-
-
Method Detail
-
newHandlerInstance
public E newHandlerInstance(String classname) throws ClassNotFoundException
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
public E registerChangeListener(LAFChangeListener<E> listener)
-
unregisterChangeListener
public void unregisterChangeListener(LAFChangeListener<E> listener)
unregister a @see LAFChangeListener from the Map which will prevent notification on @see Handler change- Parameters:
listener
-
-
getListeners
public HashSet<LAFChangeListener<E>> getListeners()
-
loadListeners
public void loadListeners(HashSet<LAFChangeListener<E>> listeners)
-
changeHandler
public void changeHandler(E handler)
-
notifyListeners
protected void notifyListeners()
-
getHandler
public E getHandler()
-
-