org.spicefactory.pimento.metamodel.impl
Class DefaultMetamodelLoader

java.lang.Object
  extended by org.spicefactory.pimento.metamodel.impl.DefaultMetamodelLoader
All Implemented Interfaces:
MetamodelLoader

public class DefaultMetamodelLoader
extends Object
implements MetamodelLoader

Default implementation of the MetamodelLoader interface.

Author:
Jens Halm

Constructor Summary
DefaultMetamodelLoader(PimentoConfig config)
          Creates a new instance.
 
Method Summary
 Metamodel load()
          Loads the metamodel for all managed persistent entities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMetamodelLoader

public DefaultMetamodelLoader(PimentoConfig config)
Creates a new instance.

Parameters:
config - the Pimento configuration containing the entity metamodel.
Method Detail

load

public Metamodel load()
Description copied from interface: MetamodelLoader
Loads the metamodel for all managed persistent entities.

This is an internal operation not exposed to the client-side EntityManager interface. It is always executed as the initial request for any client, since the clients need access to the metamodel before they are able to perform other requests.

Specified by:
load in interface MetamodelLoader
Returns:
the metamodel for all managed persistent entities