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_TYPEFields 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> TgetAdapter(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.IModuleReturns the server module that represents the server application.getName()Returns the application localized name.org.eclipse.core.resources.IProjectReturns the parent project of the application.Gets platform version required by this application.org.eclipse.wst.server.core.IServerReturns the server to run application on.getType()Returns the application type.getUrl()Returns the optional available url accessURL.inthashCode()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 benullproject- the parent project, cannot benullserver- the parent WST server, cannot benullmodule- the WST server module, cannot benull
-
-
Method Details
-
getId
Description copied from interface:IApplicationReturns the application unique id.- Specified by:
getIdin interfaceIApplication- Specified by:
getIdin interfaceIUrlAccess- Returns:
- the application unique id, never
null
-
getName
Description copied from interface:IApplicationReturns the application localized name.- Specified by:
getNamein interfaceIApplication- Returns:
- the application localized name, never
null
-
getType
Description copied from interface:IApplicationReturns the application type.- Specified by:
getTypein interfaceIApplication- Returns:
- the application type, never
null - See Also:
-
getArtifacts
Description copied from interface:IApplicationReturns a list of application artifacts. May be empty.- Specified by:
getArtifactsin interfaceIApplication- Returns:
- a list of application artifacts, never
null
-
getProject
public org.eclipse.core.resources.IProject getProject()Description copied from interface:IApplicationReturns the parent project of the application.- Specified by:
getProjectin interfaceIApplication- Returns:
- the parent project of the application, never
null
-
getServer
public org.eclipse.wst.server.core.IServer getServer()Description copied from interface:IServerApplicationReturns the server to run application on.- Specified by:
getServerin interfaceIServerApplication- Returns:
- the server to run application on, never
null
-
getModule
public org.eclipse.wst.server.core.IModule getModule()Description copied from interface:IServerApplicationReturns the server module that represents the server application.- Specified by:
getModulein interfaceIServerApplication- Returns:
- the server module that represents the server application, never
null
-
getApplication
Description copied from interface:ILifecycleAwareReturns the parent application of this lifecycle aware object.- Specified by:
getApplicationin interfaceILifecycleAware- Specified by:
getApplicationin interfaceIUrlAccess- Returns:
- the parent application of this lifecycle aware object, never
null
-
getAdapter
- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable
-
getUrl
Description copied from interface:IUrlAccessReturns 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:
getUrlin interfaceIUrlAccess- Returns:
- the optional available accessible
URL - Throws:
ApplicationException- if endpointURLget error occurred
-
hashCode
public int hashCode() -
equals
-
toString
-
getRequiredVersion
Description copied from interface:IApplicationGets platform version required by this application. Some types of applications could require specific platform version to be used.- Specified by:
getRequiredVersionin interfaceIApplication- Returns:
- Required exact full platform version or mask that has to be used or an empty value if there are no such requirements for this application.
-