Patent ID: 6918122

Claim:
An apparatus for dynamic implementation of a Java™ Metadata Interface (JMI) to a metamodel, the apparatus comprising: means for receiving a JMI implementation request, said request associated with a metamodel, said metamodel comprising at least one package, said at least one package comprising at least one class, said at least one class comprising at least one attribute, reference or operation; means for implementing a package proxy JMI interface when said request comprises a package proxy request wherein said means for implementing a package proxy JMI interface comprises: means for generating bytecode for a class that implements said package proxy JMI interface wherein said means for generating further comprises: means for receiving a metamodel package; means for receiving a package proxy interface method associated with said metamodel package; means for determining a class name based upon said interface method; means for searching said metamodel package for a class corresponding to said class name; and means for producing an implementation of said interface method that returns a proxy for said class when said class name is found in said metamodel package; means for creating a new instance of said class; and means for returning said instance; means for implementing a class proxy JMI interface when said request comprises a class proxy request; and means for implementing a class instance JMI interface when said request comprises a class instance request.