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.

See Also:
Tutorial on Custom Behavior & Delegation, DelegatedBehavior
  • Constructor Summary

    Constructors 
    Constructor Description
    DelegatedBehaviorBase()  
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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 interface DelegatedBehavior<T extends VObject>
      Parameters:
      caller - the caller that delegates to this class