Class ServerConfigEnvReference

    • Constructor Detail

      • ServerConfigEnvReference

        public ServerConfigEnvReference()
        Creates a Server configuration environment Reference property with no name and with a null value.
      • ServerConfigEnvReference

        public ServerConfigEnvReference​(Atom propertyAtom)
        Creates a Server configuration environment Reference property with the specified name with a null value.
        Parameters:
        propertyAtom - the property atom.
      • ServerConfigEnvReference

        public ServerConfigEnvReference​(Atom propertyAtom,
                                        java.lang.String newValue)
        Creates a Server configuration environment Reference property with the specified name and value.
        Parameters:
        propertyAtom - the property atom.
        newValue - the new string value for the property.
    • Method Detail

      • isPropPrivateAtCreation

        protected boolean isPropPrivateAtCreation()
        Called upon creation of the property to check it's private state. This is used by properties that are not distributed to the remote party.
        Overrides:
        isPropPrivateAtCreation in class GProp<ReferenceString>
        Returns:
        true, always.
      • getServerConfigEnvironment

        public ServerConfigEnvProps getServerConfigEnvironment()
        Gets the Server configuration environment for this reference.

        The method first attempts to use the resolved mechanism of getting the selector. If this has failed or has not been resolved yet, the property tree will be used to search for it. The latter is, of course, slower.

        Returns:
        The Selector instance, or null if not found.
      • getLookupPropReference

        protected java.lang.String getLookupPropReference​(ReferenceString name)
        Creates the reference string to look-up from the ReferenceString. Override this method for e.g. Base or Fixed Relative referencing.
        Overrides:
        getLookupPropReference in class AbstractReference<ServerConfigEnvProps>
        Parameters:
        name - The reference name.
        Returns:
        The property reference string to look-up.
      • setLookedUpReference

        protected java.lang.String setLookedUpReference​(java.lang.String name)
        Sets the reference found that also has been validated. This method gives the opportunity for a subclass to remove e.g. the Base or Fixed Relative reference from the string start.
        Overrides:
        setLookedUpReference in class AbstractReference<ServerConfigEnvProps>
        Parameters:
        name - The full reference.
        Returns:
        The reference to set in this property as ReferenceString.