I have some existing code that takes advantage of the EMF-supplied notification 
features in an EMF/SDO 1.0 DataObject. Specifically, I have wrapper class that 
wraps a statically generated Customer DataObject. The CustomerWrapper's 
constructor is listed below. Is there any way to enable EMF 
notification/adapter support for SDO 2 DataObjects?
 
- Ron
 
public CustomerWrapper(Customer customer)
{
   ((DataObject) customer).eAdapters().add(
      new AdapterImpl()
      {
         public void notifyChanged(Notification notification)
         {
            doInterestingWork();
         };
      });
}
 
protected doInterestingWork()
{
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to