Class FixedVirtualizedAbstractReference<TARGET extends IPropCnr>

    • Field Detail

      • fixedTarget

        protected TARGET extends IPropCnr fixedTarget
        Target fixed at virtualization.
    • Constructor Detail

      • FixedVirtualizedAbstractReference

        protected FixedVirtualizedAbstractReference()
        Creates a Abstract Reference property with no name and with a null value.
      • FixedVirtualizedAbstractReference

        protected FixedVirtualizedAbstractReference​(Atom propertyAtom)
        Creates a Abstract Reference property with the specified name with a null value.
        Parameters:
        propertyAtom - the property atom.
      • FixedVirtualizedAbstractReference

        protected FixedVirtualizedAbstractReference​(Atom propertyAtom,
                                                    java.lang.String newValue)
        Creates a Abstract Reference property with the specified name and value.
        Parameters:
        propertyAtom - the property atom.
        newValue - the new string value for the property.
    • Method Detail

      • getFixedTarget

        protected TARGET getFixedTarget()
        Support for a fixed reference.

        Override to provide the support.

        Overrides:
        getFixedTarget in class AbstractReference<TARGET extends IPropCnr>
        Returns:
        The fixed reference to return in cases the target reference is needed, and also serves as a verification if a new reference should be created or not. Returning null causes normal behavior (default).
      • clearFixedTarget

        protected void clearFixedTarget()
        Called to clear the fixed reference in case the reference is changed. This will revert back to normal processing.

        The "clone" method does not change to be overridden to clear the fixed target as this method is called during cloning.

        This method is called prior to calling "initializeReferenceClone()" during cloning.

        Override to provide the support. It is important to also implement this method along with "getFixedTarget".

        Overrides:
        clearFixedTarget in class AbstractReference<TARGET extends IPropCnr>
      • informResolved

        protected void informResolved()
        Called when the property has been resolved. Subclasses override this method to implement some behavior. The default implementation performs nothing, i.e. there is no need to call super.informResolved().
        Overrides:
        informResolved in class AbstractReference<TARGET extends IPropCnr>
      • informError

        protected void informError()
        Called when the property has an error. Subclasses override this method to implement some behavior. The default implementation performs nothing, i.e. there is no need to call super.informError().
        Overrides:
        informError in class AbstractReference<TARGET extends IPropCnr>
      • informClearError

        protected void informClearError()
        Called when the property has been cleared from error. Subclasses override this method to implement some behavior. The default implementation performs nothing, i.e. there is no need to call super.informClearError().
        Overrides:
        informClearError in class AbstractReference<TARGET extends IPropCnr>
      • onVirtualized

        protected void onVirtualized​(IAppSessionGyro appGyro,
                                     IClientSessionGyro clientGyro,
                                     VirtualSpace virtualSpace,
                                     PropCnr virtualizedProp,
                                     GProp<?> clonedProp)
        Called when this property has been virtualized.

        Override to perform required processing.

        Overrides:
        onVirtualized in class GProp<ReferenceString>
        Parameters:
        appGyro - The application gyro instance performing the virtualization.
        clientGyro - The client gyro session, can be null if not initialized from the client gyro.
        virtualSpace - The virtualized VirtualSpace.
        virtualizedProp - The property being virtualized.
        clonedProp - The property that is cloned to produce this virtualized property.
      • onVirtualizationCompleted

        protected void onVirtualizationCompleted​(IAppSessionGyro appGyro,
                                                 IClientSessionGyro clientGyro,
                                                 VirtualSpace virtualSpace,
                                                 PropCnr virtualizedProp,
                                                 boolean isPostResolve)
        Called when virtualization completed.

        This method is called to the entire tree of the newly virtualized property container.

        Overrides:
        onVirtualizationCompleted in class GProp<ReferenceString>
        Parameters:
        appGyro - The application gyro instance performing the virtualization.
        clientGyro - The client gyro session, can be null if not initialized from the client gyro.
        virtualSpace - The virtualized VirtualSpace.
        virtualizedProp - The property being virtualized.
        isPostResolve - Flag indicating this call is done after references are attempted to be resolved.
      • onResolved

        protected void onResolved​(TARGET target)
        Called when the target is resolved.
        Parameters:
        target - The target.
      • onBroken

        protected void onBroken​(TARGET target)
        Called when the target is broken.
        Parameters:
        target - The target.