Class GlassfishDomain.Server

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    GlassfishDomain

    public static class GlassfishDomain.Server
    extends java.lang.Object
    implements java.io.Serializable
    The type Server.
    See Also:
    Serialized Form
    • Field Detail

      • configRef

        protected java.lang.String configRef
        The Config ref.
      • name

        protected java.lang.String name
        The Name.
    • Constructor Detail

      • Server

        public Server()
        Instantiates a new Server.
      • Server

        public Server​(java.lang.String name)
        Instantiates a new Server.
        Parameters:
        name - the name
    • Method Detail

      • getApplicationRef

        public <T> T getApplicationRef​(java.lang.Class<T> clazz,
                                       java.lang.String name)
        Gets application ref.
        Type Parameters:
        T - the type parameter
        Parameters:
        clazz - the clazz
        name - the name
        Returns:
        the application ref
      • getApplicationRefs

        public java.util.List<GlassfishDomain.Reference> getApplicationRefs()
        Gets application refs.
        Returns:
        the application refs
      • getApplicationRefs

        public <T> java.util.List<T> getApplicationRefs​(java.lang.Class<T> clazz)
        Gets application refs.
        Type Parameters:
        T - the type parameter
        Parameters:
        clazz - the clazz
        Returns:
        the application refs
      • getConfigRef

        public java.lang.String getConfigRef()
        Gets config ref.
        Returns:
        the config ref
      • getName

        public java.lang.String getName()
        Gets name.
        Returns:
        the name
      • getResourceRef

        public <T> T getResourceRef​(java.lang.Class<T> clazz,
                                    java.lang.String name)
        Gets resource ref.
        Type Parameters:
        T - the type parameter
        Parameters:
        clazz - the clazz
        name - the name
        Returns:
        the resource ref
      • getResourceRefs

        public java.util.List<GlassfishDomain.Reference> getResourceRefs()
        Gets resource refs.
        Returns:
        the resource refs
      • getResourceRefs

        public <T> java.util.List<T> getResourceRefs​(java.lang.Class<T> clazz)
        Gets resource refs.
        Type Parameters:
        T - the type parameter
        Parameters:
        clazz - the clazz
        Returns:
        the resource refs
      • getSystemProperties

        public java.util.List<GlassfishDomain.Property> getSystemProperties()
        Gets system properties.
        Returns:
        the system properties
      • getSystemProperties

        public <T> java.util.List<T> getSystemProperties​(java.lang.Class<T> clazz)
        Gets system properties.
        Type Parameters:
        T - the type parameter
        Parameters:
        clazz - the clazz
        Returns:
        the system properties
      • getSystemProperty

        public <T> T getSystemProperty​(java.lang.Class<T> clazz,
                                       java.lang.String name)
        Gets system property.
        Type Parameters:
        T - the type parameter
        Parameters:
        clazz - the clazz
        name - the name
        Returns:
        the system property
      • setConfigRef

        public void setConfigRef​(java.lang.String configRef)
        Sets config ref.
        Parameters:
        configRef - the config ref
      • setName

        public void setName​(java.lang.String name)
        Sets name.
        Parameters:
        name - the name