org.beanfabrics.meta
Class MetadataRegistry

java.lang.Object
  extended by org.beanfabrics.meta.MetadataRegistry

public class MetadataRegistry
extends java.lang.Object

The MetadataRegistry is a registry for presentation model meta data.


Constructor Summary
MetadataRegistry()
          Constructs a MetadataRegistry.
 
Method Summary
 PathNode getPathNode(java.lang.Class<? extends PresentationModel> modelClass)
          Returns the path tree with the given model class as root node.
 PathNode getPathNode(TypeInfo typeInfo)
          Returns the path tree with the given type info as root element.
 TypeInfo getTypeInfo(java.lang.Class<? extends PresentationModel> modelClass)
          Returns the type information for the given model class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataRegistry

public MetadataRegistry()
Constructs a MetadataRegistry.

Method Detail

getTypeInfo

public TypeInfo getTypeInfo(java.lang.Class<? extends PresentationModel> modelClass)
Returns the type information for the given model class. If the type is not already registered it is created and registered on-the-fly.

Parameters:
modelClass -
Returns:
the type information for the given model class

getPathNode

public PathNode getPathNode(java.lang.Class<? extends PresentationModel> modelClass)
Returns the path tree with the given model class as root node.

Parameters:
modelClass -
Returns:
the path tree with the given model class as root node

getPathNode

public PathNode getPathNode(TypeInfo typeInfo)
Returns the path tree with the given type info as root element.

Parameters:
typeInfo -
Returns:
the path tree with the given type info as root element