[ http://issues.apache.org/jira/browse/GERONIMO-791?page=all ]

Aaron Mulder updated GERONIMO-791:
----------------------------------

    Description: 
The current "GBean Framework" provides support for the methods of 
J2EEManagedObject, meaning they're effectively implemented for every GBean 
regardless of whether the GBean itself implements them.  This happens in 
GBeanInstace.addManagedObjectAttributes, and the attributes in question are:

objectName (String, "special")
stateManageable (boolean, "framework")
statisticsProvider (boolean, "framework")
eventProvider (boolean, "framework")

These should be removed.  If a GBean wants to implement J2EEManagedObject, it 
should provide its own implementation of this stuff.  (It can get its 
ObjectName injected as a magic attribute.)

  was:
The current "GBean Framework" provides support for the methods of 
J2EEManagedObject, meaning they're effectively implemented for every GBean 
regardless of whether the GBean itself implements them.  This happens in 
GBeanInstace.addManagedObjectAttributes, and the attributes in question are:

objectName (String, "special")
stateManageable (boolean, "framework")
statisticsProvider (boolean, "framework")
eventProvider (boolean, "framework")

At least the last three should be removed.  It's not clear to me that the 
objectName attribute should be removed.  In any case, if a GBean wants to 
implement J2EEManagedObject, it should provide its own implementation of this 
stuff.  I'm just unsure what it's expected to return from getObjectName, since 
it's not clear that a GBean implementation has any way to get its own 
ObjectName.


> Remove GBeanInstance support for J2EEManagedObject methods
> ----------------------------------------------------------
>
>          Key: GERONIMO-791
>          URL: http://issues.apache.org/jira/browse/GERONIMO-791
>      Project: Geronimo
>         Type: Bug
>   Components: kernel
>     Versions: 1.0-M3
>     Reporter: Aaron Mulder
>     Assignee: Dain Sundstrom

>
> The current "GBean Framework" provides support for the methods of 
> J2EEManagedObject, meaning they're effectively implemented for every GBean 
> regardless of whether the GBean itself implements them.  This happens in 
> GBeanInstace.addManagedObjectAttributes, and the attributes in question are:
> objectName (String, "special")
> stateManageable (boolean, "framework")
> statisticsProvider (boolean, "framework")
> eventProvider (boolean, "framework")
> These should be removed.  If a GBean wants to implement J2EEManagedObject, it 
> should provide its own implementation of this stuff.  (It can get its 
> ObjectName injected as a magic attribute.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to