| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <HTML> |
| <HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| <title>Variable Resolver</title> |
| <style type="text/css">@import url("../../book.css");</style> |
| <style type="text/css">@import url("../../schema.css");</style> |
| </HEAD> |
| <BODY> |
| <H1 style="text-align:center">Variable Resolver</H1> |
| <p></p> |
| <h6 class="CaptionFigColumn SchemaHeader">Identifier: </h6>org.eclipse.jst.jsf.core.variableresolver<p></p> |
| <h6 class="CaptionFigColumn SchemaHeader">Since: </h6>1.5 |
| <p></p> |
| |
| <h6 class="CaptionFigColumn SchemaHeader">Description: </h6>Allows a third-party to define an alternative instance of the design time variable resolver. This id can then be set on a project using DesignTimeApplicationManager.setVariableResolverProvider. Once set on a project this id will be used to load the active design time variable resolver.<p></p> |
| <h6 class="CaptionFigColumn SchemaHeader">Configuration Markup:</h6> |
| <p></p> |
| <p class="code SchemaDtd"><!ELEMENT <a name="e.extension">extension</a> (<a href="#e.variableresolver">variableresolver</a>)></p> |
| <p class="code SchemaDtd"><!ATTLIST extension</p> |
| <p class="code SchemaDtdAttlist">point CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">id CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">name CDATA #IMPLIED</p>></p> |
| <p></p> |
| <ul class="ConfigMarkupAttlistDesc"> |
| </ul> |
| <br><p class="code SchemaDtd"><!ELEMENT <a name="e.variableresolver">variableresolver</a> EMPTY></p> |
| <p class="code SchemaDtd"><!ATTLIST variableresolver</p> |
| <p class="code SchemaDtdAttlist">id CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">class CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">forRuntimeClass CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">instancePerProject (true | false) </p>></p> |
| <p></p> |
| <ul class="ConfigMarkupAttlistDesc"> |
| <li><b>id</b> - The id to be used to identify this property resolver.</li> |
| <li><b>class</b> - The class implementing the property resolver.</li> |
| <li><b>forRuntimeClass</b> - Names a class (it need not be on the class path at designtime) that this designtime variable resolver is intended to shadow. |
| |
| The instance of AbstractDTVariableResolver provided by the 'class' attribute _must_ implement the IDecorativeResolver tagging interface in order to be used in this way.</li> |
| <li><b>instancePerProject</b> - Default if not specified is false. This is backward compatible with pre-3.0 behaviour for the variableresolver extension point. |
| |
| If set to false (or not set) a single instance of the variable resolver will be used for all design time managers in the workspace. If set to true, a new instance will be created on every time this variable resolver becomes the active one on a design time application manager. |
| |
| If 'class' specifies a type that implements org.eclipse.jst.jsf.designtime.el.IInstancePerProjectResolver, then setProject will be called with the host project. Implementing this interface is optional.</li> |
| </ul> |
| <br><h6 class="CaptionFigColumn SchemaHeader">Examples: </h6><p>The following example defines a new variable resolver implemented by CustomDTVariableResolver</p> |
| |
| <p> |
| <pre class="Example"><span class="code SchemaTag"> |
| <extension |
| point=</span><span class="code SchemaCstring">"org.eclipse.jst.jsf.designtime.variableresolver"</span><span class="code SchemaTag">> |
| <variableresolver |
| class=</span><span class="code SchemaCstring">"org.eclipse.jst.jsf.dtresolver.test.resolvers.CustomDTVariableResolver"</span><span class="code SchemaTag"> |
| id=</span><span class="code SchemaCstring">"org.eclipse.jst.jsf.dtresolver.test.variableresolver1"</span><span class="code SchemaTag">/> |
| </extension> |
| </span></pre> |
| </p> |
| <p></p> |
| |
| <br> |
| <p class="note SchemaCopyright"> |
| Copyright 2006 Oracle |
| 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 |
| |
| </p> |
| </BODY> |
| </HTML> |