This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 20041

Summary: Suggest declaring MOF package name as constant in MDR
Product: java Reporter: Svata Dedic <sdedic>
Component: UnsupportedAssignee: Martin Matula <mmatula>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P4    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Svata Dedic 2002-02-01 13:32:34 UTC
I noticed that all modules, which currently use MDR have their own constant for
the name of MOF package extent. I suggest to declare such name as a public
static final constant in MDR module.
I also suggest that there's an utility method, which would acquire/create the
MOF metamodel package extent (with the above well-known name) for convenience of
MDR users.
Comment 1 Martin Matula 2002-02-01 16:25:29 UTC
What is a use-case for such a constant? Note that MDRepository
declares method createPackageInstance(String) that creates instance of
MOF model. Is there other need for knowing the name of MOF package
than just for creating instance of it?
Comment 2 Martin Matula 2004-06-20 11:43:29 UTC
There is a createExtent method that takes only one parameter and
creates an instance of MOF. This should be enough and the constant
should not be needed.