org.eclipse.january.metadata

## Class MetadataFactory

- java.lang.Object
- - org.eclipse.january.metadata.MetadataFactory

-     public class MetadataFactory
      extends Object

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T extends MetadataType> T` | `createMetadata(Class<T> clazz, Object... arguments)` Create a metadata object of given class with given arguments
    `static <T extends MetadataType> void` | `registerClass(Class<T> clazz)` Register metadata class

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### createMetadata

          public static <T extends MetadataType> T createMetadata(Class<T> clazz,
                                                  Object... arguments)
                                                       throws MetadataException

      Create a metadata object of given class with given arguments
      Parameters:
        `clazz` -
        `arguments` - these must match the arguments given in the initialize method specified in the class
      Returns:
        metadata object or null if type not available
      Throws:
        `MetadataException` - if the class cannot be instantiated, the initialize method does not exist, or the initialize method could not be called successfully

    - #### registerClass

          public static <T extends MetadataType> void registerClass(Class<T> clazz)

      Register metadata class
      Parameters:
        `clazz` -

Copyright © 2014–2017 Eclipse Foundation. All rights reserved.