Initialize Extension
Identifier:
org.eclipse.weaver.initializeExtensionID
Since:
2.0
Description:
This extension point
enables defining "initialize" extensions. The developer must define an
initialization class for general initialization purposes, because a predefined
method is called in the moment it creates the weaving model. (for example the
developer can create some predefined mappings or objects).
Configuration Markup:
<!ELEMENT extension (extensionInitialization)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED>
- point - The defined extension point ID
- id - Its own ID (used for identification)
<!ELEMENT extensionInitialization EMPTY>
<!ATTLIST extensionInitialization
class CDATA #REQUIRED>
Initalization class used for general
purposes.
- class - The class name. must implements IWeaverInitialize. In the
initilization of the weaving model it calls the method initWeaverMetamodel
(see API information for more details).
Examples:
this example uses a class
for initialise its contents, called WeaverInitialize <extension
point=
"org.eclipse.weaver.initializeExtensionID"
id=
"DefaultInitializationExtension"
>
<extensionInitialization
class =
"org.eclipse.weaver.extension.init.WeaverInitialize"
/>
</extension>
API Information:
interface
org.eclipse.weaver.extension.IWeaverInitializer /**
Called before creating any weaving objects. Used for general initialization purposes. Must receive the model manager, editing domain and isNew. wModel and wModelrefs are optional and can be null.
* @param manager
* @param editingDomain
* @param wModel
* @param isNew
*/
public void initWeaverMetamodel(WeaverModelManager manager, EditingDomain editingDomain, String wModelName, List wModelRefNames, boolean isNew)
Supplied Implementation:
There is a
default supplied implementation of this extension point in the Model Weaver Base
Extension plugin "org.eclipse.weaver.extension.base".