站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.0.0

Overview (NetBeans MDR API) - NetBeans API Javadoc 5.0.0

 

NetBeans MDR API

There are two kinds of API classes exposed by MDR: The reflective JMI API and JMI interfaces generated for MOF metamodel.

See:
          Description

MDR API
org.netbeans.api.mdr API classes and interfaces that serve as an entry point to a metadata repository.
org.netbeans.api.mdr.events  
org.netbeans.api.xmi API classes and interfaces that are used for import/export of XMI documents into/from a JMI-compliant repository.
org.netbeans.api.xmi.sax  

 

There are two kinds of API classes exposed by MDR:

By MDR a new kind of API is introduced - JMI interfaces generated from a given metamodel. Since it is expected that the number of NetBeans modules that will use MOF metamodels and JMI API generated from them to manage metadata, it is desirable to establish come conventions for where the generated API should be located (in what packages), where custom implementations of those metamodels should be and some other concepts like naming of metamodels and repositories. Suggested target package for metamodel specific JMI interfaces is org.netbeans.jmi.

What is New (see all changes)?

Use Cases

The MDR should be used for data-integration accross different modules in the IDE. An example usecase can be found at http://mdr.netbeans.org/example.html. Basic usecases can also be found in the overview of individual API packages in javadoc.

Exported Interfaces

This table lists all of the module exported APIs with defined stability classifications. It is generated based on answers to questions about the architecture of the module. Read them all...
Group of java interfaces
Interface NameIn/OutStabilitySpecified in What Document?
MDRAPIExportedStable

OMG-Meta-Object-FacilityExportedStandard .../technology/documents/formal/mof.htm

OMG-XML-Metadata-InterchangeExportedStandard .../technology/documents/formal/xmi.htm

JSR-40-Java-Metadata-InterfaceExportedStandardhttp://java.sun.com/products/jmi

Group of property interfaces
Interface NameIn/OutStabilitySpecified in What Document?
org.netbeans.mdr.persistence.btreeimpl.btreestorage.MDRCache.threshholdExportedPrivate
storageExportedPrivate
org.netbeans.mdr.persistence.btreeimpl.uuidExportedPrivate
org.netbeans.mdr.persistence.btreeimpl.filenameExportedPrivate
org.netbeans.mdr.persistence.memoryimpl.idExportedPrivate
org.netbeans.mdr.persistence.memoryimpl.fileNameExportedPrivate

Group of java.io.File interfaces
Interface NameIn/OutStabilitySpecified in What Document?
Btree-filesExportedPrivate

For every storage the b-tree database creates two permanent files - index file (*.btx) and data file (*.btd). When modifying data in the database the b-tree creates an additional backup file (*.btb), which is deleted when the database is shutdown.

Implementation Details

What do other modules need to do to declare a dependency on this one?
OpenIDE-Module-Module-Dependencies: org.netbeans.api.mdr/1 OpenIDE-Module-Requires: org.netbeans.api.mdr.MDRManager

Read more about the implementation in the answers to architecture questions.


 

Built on May 3 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.