# Runtime Types

###### Identifier:

org.eclipse.wst.server.core.runtimeTypes

###### Since:

1.0

###### Description:

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. This extension point as well as the classes required to implement it are deprecated due to the addition of facets in WTP 1.0. If you were using this extension point for classpath then you can use the org.eclipse.jst.server.core.runtimeClasspathProviders extension point instead.

###### Configuration Markup:

<!ELEMENT extension (runtimeTargetHandler+)>

<!ATTLIST extension

point CDATA #REQUIRED

id CDATA #IMPLIED

name CDATA #IMPLIED>

- point - a fully qualified identifier of the target extension point
- id - an optional identifier of the extension instance
- name - an optional name of the extension instance

The runtimeTargetHandler element is deprecated

<!ELEMENT runtimeTargetHandler EMPTY>

<!ATTLIST runtimeTargetHandler

id CDATA #REQUIRED

runtimeTypeIds CDATA #REQUIRED

class CDATA #REQUIRED

order CDATA #IMPLIED>

- id - specifies a unique identifier for this extension point
- runtimeTypeIds - a comma separated list of runtime type ids that this handler may support. Used for memory & performance reasons
- class - specifies the fully qualified name of the Java class that extends `RuntimeTargetHandlerDelegate`. Runtime target handler instances of this type will delegate to instances of this class.
- order - an integer order used to sort handlers relative to each other

###### Examples:

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>

Copyright (c) 2000, 2005 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html