A method for dynamic implementation of a Java Metadata Interface (JMI)
to a metamodel includes receiving a JMI implementation request, implementing a
package proxy JMI interface when the request is a package proxy request, implementing
a class proxy JMI interface when the request is a class proxy request and implementing
a class instance JMI interface when the request is a class instance request. The
request is associated with a metamodel that includes at least one package. The
at least one package includes at least one class. The at least one class includes
at least one attribute reference or operation. An apparatus for dynamic implementation
of a Java Metadata Interface (JMI) to a metamodel includes a requestor
to make a JMI implementation request, a package proxy implementor to implement
a package proxy JMI interface when the request is a package proxy request, a class
proxy implementor to implement a class proxy JMI interface when the request is
a class proxy request and a class instance implementor to implement a class instance
JMI interface when the request is a class instance request.