public interface MetaData
get(Class) method, passing one of the types used to register the instance. A data
instance can be registered in the meta data object under multiple types by using the
register(Object, Class[]) method.| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(Class<T> type)
Get the strongly typed data instance for the specified type.
|
void |
register(Object instance,
Class... types)
Register a data instance for one or more types.
|
<T> T get(Class<T> type)
T - The type of the datatype - The type of the data requiredvoid register(Object instance, Class... types)
instance - The data instance to storetypes - The types for which this data instance should be returned.Copyright © 2017 SAP SE. All Rights Reserved.