Runtime Types

org.eclipse.wst.server.core.runtimeTypes

1.0

This extension point is used to provide a new runtime target handler. Runtime target handlers are called whenever a runtime target is added or removed from a project. They can be used to switch Java classpaths, setup default resources, etc.

<!ELEMENT extension (runtimeTargetHandler*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


The runtimeTargetHandler element is deprecated

<!ELEMENT runtimeTargetHandler EMPTY>

<!ATTLIST runtimeTargetHandler

id             CDATA #REQUIRED

runtimeTypeIds CDATA #REQUIRED

class          CDATA #REQUIRED

order          CDATA #IMPLIED>


The following is an example of a runtime target handler extension point:
   

<extension point=

"org.eclipse.wst.server.core.runtimeTargetHandlers"

>

<runtimeTargetHandler id=

"com.example.runtimeTargetHandler"

runtimeTypeIds=

"com.example.runtime, com.example2.*"

class=

"com.example.ExampleRuntimeTargetHandler"

/>

</extension>

Value of the attribute class must be a fully qualified name of a Java class that extends org.eclipse.wst.server.core.model.RuntimeTargetHandlerDelegate and contains a public 0-arg constructor.