|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.data.provider.impl.MetadataProviderBase
public abstract class MetadataProviderBase
Superclass for all metadata providers which contain the basic operations and data structure. All each subclass needs to implement is the initializeMetadata method.
Field Summary | |
---|---|
protected ConcurrentHashMap<Class<?>,DataObjectMetadata> |
masterMetadataMap
|
Constructor Summary | |
---|---|
MetadataProviderBase()
|
Method Summary | |
---|---|
DataObjectMetadata |
getMetadataForType(Class<?> dataObjectType)
Obtains the metadata for a specific data type. |
Collection<Class<?>> |
getSupportedTypes()
Returns a complete list of the data object types which will return data from this provider. |
boolean |
handles(Class<?> type)
Indicates whether or not this provider handles metadata for the given data object type. |
protected abstract void |
initializeMetadata(Collection<Class<?>> types)
Performs the initialization of the provider with the given set of types. |
protected boolean |
isClassPersistable(Class<?> clazz)
|
Map<Class<?>,DataObjectMetadata> |
provideMetadata()
Provides the metadata available from this provider for all of it's data objects. |
Map<Class<?>,DataObjectMetadata> |
provideMetadataForTypes(Collection<Class<?>> types)
Provides the metadata for the given types. |
boolean |
requiresListOfExistingTypes()
By default, providers are assumed to be able to pull the list of annotated types from somewhere. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ConcurrentHashMap<Class<?>,DataObjectMetadata> masterMetadataMap
Constructor Detail |
---|
public MetadataProviderBase()
Method Detail |
---|
protected abstract void initializeMetadata(Collection<Class<?>> types)
public boolean handles(Class<?> type)
MetadataProvider
handles
in interface MetadataProvider
type
- the data object type to check
public Collection<Class<?>> getSupportedTypes()
MetadataProvider
getSupportedTypes
in interface MetadataProvider
public Map<Class<?>,DataObjectMetadata> provideMetadata()
MetadataProvider
provideMetadata
in interface MetadataProvider
public Map<Class<?>,DataObjectMetadata> provideMetadataForTypes(Collection<Class<?>> types)
MetadataProvider
provideMetadataForTypes
in interface MetadataProvider
public DataObjectMetadata getMetadataForType(Class<?> dataObjectType) throws IllegalArgumentException
MetadataProvider
getMetadataForType
in interface MetadataProvider
IllegalArgumentException
- if the data object type is null.protected boolean isClassPersistable(Class<?> clazz)
public boolean requiresListOfExistingTypes()
requiresListOfExistingTypes
in interface MetadataProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |