Class ServerApplication

java.lang.Object
com.e1c.g5.dt.internal.applications.wst.ServerApplication
All Implemented Interfaces:
IApplication, ILifecycleAware, IUrlAccess, IServerApplication, org.eclipse.core.runtime.IAdaptable

public class ServerApplication extends Object implements IServerApplication
The default implementation of IServerApplication.
  • Constructor Details

    • ServerApplication

      public ServerApplication(IApplicationType type, org.eclipse.core.resources.IProject project, org.eclipse.wst.server.core.IServer server, org.eclipse.wst.server.core.IModule module)
      Creates an instance of ServerApplication.
      Parameters:
      type - the parent application type, cannot be null
      project - the parent project, cannot be null
      server - the parent WST server, cannot be null
      module - the WST server module, cannot be null
  • Method Details

    • getId

      public String getId()
      Description copied from interface: IApplication
      Returns the application unique id.
      Specified by:
      getId in interface IApplication
      Specified by:
      getId in interface IUrlAccess
      Returns:
      the application unique id, never null
    • getName

      public String getName()
      Description copied from interface: IApplication
      Returns the application localized name.
      Specified by:
      getName in interface IApplication
      Returns:
      the application localized name, never null
    • getType

      public IApplicationType getType()
      Description copied from interface: IApplication
      Returns the application type.
      Specified by:
      getType in interface IApplication
      Returns:
      the application type, never null
      See Also:
    • getArtifacts

      public List<IApplicationArtifact> getArtifacts()
      Description copied from interface: IApplication
      Returns a list of application artifacts. May be empty.
      Specified by:
      getArtifacts in interface IApplication
      Returns:
      a list of application artifacts, never null
    • getProject

      public org.eclipse.core.resources.IProject getProject()
      Description copied from interface: IApplication
      Returns the parent project of the application.
      Specified by:
      getProject in interface IApplication
      Returns:
      the parent project of the application, never null
    • getServer

      public org.eclipse.wst.server.core.IServer getServer()
      Description copied from interface: IServerApplication
      Returns the server to run application on.
      Specified by:
      getServer in interface IServerApplication
      Returns:
      the server to run application on, never null
    • getModule

      public org.eclipse.wst.server.core.IModule getModule()
      Description copied from interface: IServerApplication
      Returns the server module that represents the server application.
      Specified by:
      getModule in interface IServerApplication
      Returns:
      the server module that represents the server application, never null
    • getApplication

      public IApplication getApplication()
      Description copied from interface: ILifecycleAware
      Returns the parent application of this lifecycle aware object.
      Specified by:
      getApplication in interface ILifecycleAware
      Specified by:
      getApplication in interface IUrlAccess
      Returns:
      the parent application of this lifecycle aware object, never null
    • getAdapter

      public <T> T getAdapter(Class<T> adapter)
      Specified by:
      getAdapter in interface org.eclipse.core.runtime.IAdaptable
    • getUrl

      public Optional<URL> getUrl() throws ApplicationException
      Description copied from interface: IUrlAccess
      Returns the optional available url access URL. This method may return nothing if an application or application related entity does not have a valid configuration or if it is not running.
      Specified by:
      getUrl in interface IUrlAccess
      Returns:
      the optional available accessible URL
      Throws:
      ApplicationException - if endpoint URL get error occurred
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object