Package eu.mihosoft.vmf.runtime.core
Class DelegatedBehaviorBase<T extends VObject>
- java.lang.Object
-
- eu.mihosoft.vmf.runtime.core.DelegatedBehaviorBase<T>
-
- All Implemented Interfaces:
DelegatedBehavior<T>
public class DelegatedBehaviorBase<T extends VObject> extends java.lang.Object implements DelegatedBehavior<T>
Delegation base class for invoking custom implementations. VMF objects do not support custom extensions by manipulating their implementation code. However, custom behavior can be realized be defining delegation classes that extend this class.Created by miho on 04.05.2020.
-
-
Constructor Summary
Constructors Constructor Description DelegatedBehaviorBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getCaller()
Returns the caller currently associated with this behavior.void
setCaller(T caller)
Sets the caller that delegates to this class.
-
-
-
Method Detail
-
getCaller
public T getCaller()
Returns the caller currently associated with this behavior.- Returns:
- the caller currently associated with this behavior or
null
if no such caller exists
-
setCaller
public void setCaller(T caller)
Description copied from interface:DelegatedBehavior
Sets the caller that delegates to this class. This method is called by VMF directly after initializing this object.- Specified by:
setCaller
in interfaceDelegatedBehavior<T extends VObject>
- Parameters:
caller
- the caller that delegates to this class
-
-