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.
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