Class ServerAppConfigs

java.lang.Object
com.iizix.prop.GProp<GProp<?>[]>
com.iizix.prop.PropCnr
com.iizix.server.prop.ServerAppConfigs
All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable
Direct Known Subclasses:
EditorServerAppConfigs

public class ServerAppConfigs extends PropCnr
The applications container of a server configuration environment (CC-FIX-APP-DEFINITIONS): the predefined child Atom.APPS of every ServerConfigEnvProps, always present, holding one ServerAppConfig per application the environment defines. An old configuration file whose definitions are direct children of the environment still loads: the environment moves them into this container when the file is read, logs one WARNING naming the file and the entries, and the file is rewritten in the new layout at its next save.
Author:
Christopher Mindus
  • Constructor Details

    • ServerAppConfigs

      public ServerAppConfigs()
      Creates the container without a name. The name must be set in all cases using the setPropertyAtom call.
    • ServerAppConfigs

      public ServerAppConfigs(Atom atom)
      Creates the container with a name.
      Parameters:
      atom - The name of the property, Atom.APPS.
  • Method Details

    • clone

      public ServerAppConfigs clone()
      Clone must be overridden.
      Overrides:
      clone in class PropCnr
    • getServerConfigEnvironment

      public ServerConfigEnvProps getServerConfigEnvironment()
      Gets the environment that owns this container.
      Returns:
      The environment, or null when the container is not inside one.
    • getServerAppConfigs

      public ServerAppConfig[] getServerAppConfigs()
      Gets the application definitions of the environment.
      Returns:
      The definitions, in the order of the file, empty for none.
    • getServerAppConfig

      public ServerAppConfig getServerAppConfig(String appID)
      Gets the definition of an application by its ID (an alias is not looked up: an alias is resolved by ServerSettings.findServerAppConfig).
      Parameters:
      appID - The application ID.
      Returns:
      The definition, or null when the environment defines no application of that ID.