Class ServerArtifact

java.lang.Object
com.e1c.g5.dt.internal.applications.wst.ServerArtifact
All Implemented Interfaces:
IApplicationArtifact, ILifecycleAware, IServerArtifact, org.eclipse.core.runtime.IAdaptable

public class ServerArtifact extends Object implements IServerArtifact
The default implementation of IServerArtifact.
  • Constructor Details

    • ServerArtifact

      public ServerArtifact(org.eclipse.wst.server.core.IServer server, IApplication application)
      Creates an instance of ServerArtifact.
      Parameters:
      server - the parent WST server, cannot be null
      application - the parent application, cannot be null
  • Method Details

    • getAdapter

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

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

      public IApplication getApplication()
      Description copied from interface: IApplicationArtifact
      Returns the parent application of the artifact.
      Specified by:
      getApplication in interface IApplicationArtifact
      Specified by:
      getApplication in interface ILifecycleAware
      Returns:
      the parent application of the artifact, never null
    • getServer

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

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

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