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
The default implementation of
IServerApplication
.-
Field Summary
Fields inherited from interface com.e1c.g5.dt.applications.IApplication
CONTEXT_CLIENT_ARGUMENTS, CONTEXT_CLIENT_INSTALLATION, CONTEXT_CLIENT_TYPE
Fields inherited from interface com.e1c.g5.dt.applications.wst.IServerApplication
ATTR_PLATFORM, PROP_IS_VISIBLE
-
Constructor Summary
ConstructorsConstructorDescriptionServerApplication
(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 ofServerApplication
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
<T> T
getAdapter
(Class<T> adapter) Returns the parent application of this lifecycle aware object.Returns a list of application artifacts.getId()
Returns the application unique id.org.eclipse.wst.server.core.IModule
Returns the server module that represents the server application.getName()
Returns the application localized name.org.eclipse.core.resources.IProject
Returns the parent project of the application.org.eclipse.wst.server.core.IServer
Returns the server to run application on.getType()
Returns the application type.getUrl()
Returns the optional available url accessURL
.int
hashCode()
toString()
-
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 ofServerApplication
.- Parameters:
type
- the parent application type, cannot benull
project
- the parent project, cannot benull
server
- the parent WST server, cannot benull
module
- the WST server module, cannot benull
-
-
Method Details
-
getId
Description copied from interface:IApplication
Returns the application unique id.- Specified by:
getId
in interfaceIApplication
- Specified by:
getId
in interfaceIUrlAccess
- Returns:
- the application unique id, never
null
-
getName
Description copied from interface:IApplication
Returns the application localized name.- Specified by:
getName
in interfaceIApplication
- Returns:
- the application localized name, never
null
-
getType
Description copied from interface:IApplication
Returns the application type.- Specified by:
getType
in interfaceIApplication
- Returns:
- the application type, never
null
- See Also:
-
getArtifacts
Description copied from interface:IApplication
Returns a list of application artifacts. May be empty.- Specified by:
getArtifacts
in interfaceIApplication
- 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 interfaceIApplication
- 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 interfaceIServerApplication
- 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 interfaceIServerApplication
- Returns:
- the server module that represents the server application, never
null
-
getApplication
Description copied from interface:ILifecycleAware
Returns the parent application of this lifecycle aware object.- Specified by:
getApplication
in interfaceILifecycleAware
- Specified by:
getApplication
in interfaceIUrlAccess
- Returns:
- the parent application of this lifecycle aware object, never
null
-
getAdapter
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
-
getUrl
Description copied from interface:IUrlAccess
Returns the optional available url accessURL
. 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 interfaceIUrlAccess
- Returns:
- the optional available accessible
URL
- Throws:
ApplicationException
- if endpointURL
get error occurred
-
hashCode
public int hashCode() -
equals
-
toString
-