# Annotation Initializer

###### Identifier:

org.eclipse.jst.ws.annotations.core.annotationInitializer

###### Since:

1.0

###### Description:

This extension point allows clients to associate an annotation initializer with an annotation definition. The annotation initializers role is to construct values for the annotations member value pairs.

###### Configuration Markup:

<!ELEMENT extension (initializer*)>

<!ATTLIST extension

point CDATA #REQUIRED

id CDATA #IMPLIED

name CDATA #IMPLIED

>

<!ELEMENT initializer EMPTY>

<!ATTLIST initializer

annotation IDREF #REQUIRED

class CDATA #REQUIRED

>

- annotation - the class name of the annotation definition that this initializers handles.
- class - the name of the class that implements the contributed initializer. The class must be a public and extend `org.eclipse.jst.ws.annotations.core.initialization.AnnotationAttributeInitializer` with a public 0-argument constructor.

###### Examples:

The following is an example of an annotation initializer contribution:

       <extension point="org.eclipse.jst.ws.annotations.core.annotationInitializer">
          <initializer
                annotation="javax.jws.WebService"
                class="org.eclipse.jst.ws.internal.jaxws.core.annotations.initialization.WebServiceAttributeInitializer">
          </initializer>
       </extension>

Copyright (c) 2009 Shane Clarke.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-2.0/