public class MetadataFactory extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends MetadataType> |
createMetadata(Class<T> clazz,
Object... arguments)
Create a metadata object of given class with given arguments
|
static <T extends MetadataType> |
registerClass(Class<T> clazz)
Register metadata class
|
public static <T extends MetadataType> T createMetadata(Class<T> clazz, Object... arguments) throws MetadataException
clazz
- arguments
- these must match the arguments given in the initialize method specified in the classMetadataException
- if the class cannot be instantiated, the initialize method does not exist, or
the initialize method could not be called successfullypublic static <T extends MetadataType> void registerClass(Class<T> clazz)
clazz
- Copyright © 2017. All rights reserved.