Commit df127e1f authored by Jay Jay Billings's avatar Jay Jay Billings
Browse files

Bug 479184 - Fixed bug in the provider id.



I fixed the messed up provider id in the IJAXBClassProvider. I also
renamed the extension point and added documentation to the schema.
Signed-off-by: default avatarJay Jay Billings <billingsjj@ornl.gov>
parent b7a6c436
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?> <?eclipse version="3.4"?>
<plugin> <plugin>
<extension-point id="jaxbClassProvider" name="JAXB Class Provider" schema="schema/jaxbClassProvider.exsd"/> <extension-point id="org.eclipse.ice.datastructures.jaxbClassProvider" name="JAXB Class Provider" schema="schema/jaxbClassProvider.exsd"/>
<extension <extension
id="iceJAXBClassProvider" id="iceJAXBClassProvider"
name="ICE JAXB Class Provider" name="ICE JAXB Class Provider"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<meta.schema plugin="org.eclipse.ice.datastructures" id="JAXBClassProvider" name="JAXB Class Provider"/> <meta.schema plugin="org.eclipse.ice.datastructures" id="JAXBClassProvider" name="JAXB Class Provider"/>
</appinfo> </appinfo>
<documentation> <documentation>
[Enter description of this extension point.] This Extension Point can be used by clients to automatically provide a class to ICE&apos;s JAXB-based persistence services. Extensions must realize the IJAXBProvider interface from org.eclipse.ice.datastructures.jaxbclassprovider.
</documentation> </documentation>
</annotation> </annotation>
......
...@@ -25,12 +25,12 @@ import org.slf4j.LoggerFactory; ...@@ -25,12 +25,12 @@ import org.slf4j.LoggerFactory;
* The IJAXBClassProvider interface provides the methods necessary to inform * The IJAXBClassProvider interface provides the methods necessary to inform
* clients creating a JAXBContext object of the relevant classes that must be * clients creating a JAXBContext object of the relevant classes that must be
* known for succesfull marshalling/unmarshalling of XML data. * known for succesfull marshalling/unmarshalling of XML data.
* *
* Realizations of this interface must provide a valid name String that * Realizations of this interface must provide a valid name String that
* describes the realization and a valid set of Java Class objects representing * describes the realization and a valid set of Java Class objects representing
* the JAXB-annotated structures the JAXBContext must know about. * the JAXB-annotated structures the JAXBContext must know about.
* *
* *
* @author Alex McCaskey * @author Alex McCaskey
* *
*/ */
...@@ -39,7 +39,7 @@ public interface IJAXBClassProvider { ...@@ -39,7 +39,7 @@ public interface IJAXBClassProvider {
/** /**
* Return the list of Classes that will be required in the creation of a * Return the list of Classes that will be required in the creation of a
* JAXBContext. * JAXBContext.
* *
* @return classList The list of Classes used in creating a JAXBContext * @return classList The list of Classes used in creating a JAXBContext
* object. * object.
*/ */
...@@ -47,12 +47,12 @@ public interface IJAXBClassProvider { ...@@ -47,12 +47,12 @@ public interface IJAXBClassProvider {
/** /**
* Return the name of this IJAXBClassProvider. * Return the name of this IJAXBClassProvider.
* *
* @return providerName The name of this IJAXBClassProvider * @return providerName The name of this IJAXBClassProvider
*/ */
public String getProviderName(); public String getProviderName();
/** /**
* This operation pulls the list of JAXB class providers from the registry * This operation pulls the list of JAXB class providers from the registry
...@@ -62,15 +62,15 @@ public interface IJAXBClassProvider { ...@@ -62,15 +62,15 @@ public interface IJAXBClassProvider {
* @throws CoreException * @throws CoreException
*/ */
public static IJAXBClassProvider[] getJAXBProviders() throws CoreException { public static IJAXBClassProvider[] getJAXBProviders() throws CoreException {
/** /**
* Logger for handling event messages and other information. * Logger for handling event messages and other information.
*/ */
Logger logger = LoggerFactory.getLogger(IJAXBClassProvider.class); Logger logger = LoggerFactory.getLogger(IJAXBClassProvider.class);
IJAXBClassProvider[] jaxbProviders = null; IJAXBClassProvider[] jaxbProviders = null;
String id = "org.eclipse.ice.item.itemBuilder"; String id = "org.eclipse.ice.datastructures.jaxbClassProvider";
IExtensionPoint point = Platform.getExtensionRegistry() IExtensionPoint point = Platform.getExtensionRegistry()
.getExtensionPoint(id); .getExtensionPoint(id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment