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 94145 - Use design time ContextMethod APIs to add cleanup code for dataproviders and rowsets
Summary: Use design time ContextMethod APIs to add cleanup code for dataproviders and ...
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: John Baker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-02 21:30 UTC by bugbridge
Modified: 2008-02-27 07:46 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2007-02-02 21:30:50 UTC
Original status: 1-Dispatched; Suggested Status: NEW


Original submitter: deva

Description:
Currently insync looks for Constants.BeanDescriptor.CLEANUP_METHOD in the bean
descriptor to add cleanup call for dataprovider in the destroy method of the
managed bean. This kind of hard coding should not be used in insync. Infact
insync implements designtime ContextMethod APIs to enable code insertion by the
designtime associated with beans. Dataprovider designtime should make use of the
mentioned APIs in beanCreatedSetup() to add necessary cleanup code. Similarly
the cleanup code should be removed using beanDeletedCleanup API when the bean is
deleted by the user