org.objectweb.jorm.generator.api
Interface MOPFactory

All Known Implementing Classes:
FosMOPFactory, MemMOPFactory, RdbMOPFactory

public interface MOPFactory

This interface is used to specify Meta Object Protocol must be used to specialize the the generation of mapping objects and binding objects.


Method Summary
 MOP createBindingMOP(JormCompilerParameter cp, java.lang.String mappername)
          This method must return a new instance of a BindingMOP.
 java.lang.Object createClassGenerationContext(Mapping mo)
          Creates a generation context that can be shared between binding and mapping generation for a particular class.
 MOP createMappingMOP(JormCompilerParameter cp, java.lang.String mappername)
          This method must return a new instance of a MappingMOP.
 

Method Detail

createMappingMOP

public MOP createMappingMOP(JormCompilerParameter cp,
                            java.lang.String mappername)
                     throws PException
This method must return a new instance of a MappingMOP.

Throws:
PException

createBindingMOP

public MOP createBindingMOP(JormCompilerParameter cp,
                            java.lang.String mappername)
                     throws PException
This method must return a new instance of a BindingMOP.

Throws:
PException

createClassGenerationContext

public java.lang.Object createClassGenerationContext(Mapping mo)
                                              throws PException
Creates a generation context that can be shared between binding and mapping generation for a particular class.

Throws:
PException