Class ServerArtifact
java.lang.Object
com.e1c.g5.dt.internal.applications.wst.ServerArtifact
- All Implemented Interfaces:
IApplicationArtifact
,ILifecycleAware
,IServerArtifact
,org.eclipse.core.runtime.IAdaptable
The default implementation of
IServerArtifact
.-
Constructor Summary
ConstructorsConstructorDescriptionServerArtifact
(org.eclipse.wst.server.core.IServer server, IApplication application) Creates an instance ofServerArtifact
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
<T> T
getAdapter
(Class<T> adapter) Returns the parent application of the artifact.getName()
Returns the application artifact localized name.org.eclipse.wst.server.core.IServer
Returns the server to run application on.int
hashCode()
-
Constructor Details
-
ServerArtifact
Creates an instance ofServerArtifact
.- Parameters:
server
- the parent WST server, cannot benull
application
- the parent application, cannot benull
-
-
Method Details
-
getAdapter
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
-
getName
Description copied from interface:IApplicationArtifact
Returns the application artifact localized name.- Specified by:
getName
in interfaceIApplicationArtifact
- Returns:
- the application artifact localized name, never
null
-
getApplication
Description copied from interface:IApplicationArtifact
Returns the parent application of the artifact.- Specified by:
getApplication
in interfaceIApplicationArtifact
- Specified by:
getApplication
in interfaceILifecycleAware
- 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 interfaceIServerArtifact
- Returns:
- the server to run application on, never
null
-
hashCode
public int hashCode() -
equals
-