Class AbstractNFProperty<T,​U>

  • All Implemented Interfaces:
    INFProperty<T,​U>
    Direct Known Subclasses:
    NFPropertyRef, SimpleValueNFProperty, TagProperty

    public abstract class AbstractNFProperty<T,​U>
    extends java.lang.Object
    implements INFProperty<T,​U>
    A non-functional property. NOTE: Implementing classes must implement a constructor with the signature INFProperty(String name) to allow the service to initialize the property during creation.
    • Constructor Detail

      • AbstractNFProperty

        public AbstractNFProperty​(NFPropertyMetaInfo metainfo)
        Creates the property.
        Parameters:
        name - Name of the property.
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the name of the property.
        Specified by:
        getName in interface INFProperty<T,​U>
        Returns:
        The name of the property.
      • getValue

        public IFuture<T> getValue()
        Returns the current value of the property.
        Specified by:
        getValue in interface INFProperty<T,​U>
        Returns:
        The current value of the property.
      • getPrettyPrintValue

        public IFuture<java.lang.String> getPrettyPrintValue()
        Returns the current value of the property in a human readable form.
        Specified by:
        getPrettyPrintValue in interface INFProperty<T,​U>
        Returns:
        The current value of the property.
      • readNFProperties

        public static java.util.List<INFProperty<?,​?>> readNFProperties​(java.lang.Class<?> type,
                                                                              IInternalAccess comp,
                                                                              IService ser,
                                                                              MethodInfo mi)
        Create nf properties form a class with nf annotations.
      • dispose

        public IFuture<java.lang.Void> dispose()
        Property was removed and should be disposed.
        Specified by:
        dispose in interface INFProperty<T,​U>