// see the related previous e-mail thread "[PROPOSAL] Add Entity.sensors() to group sensor/attribute methods"
// which was agreed back in August 20-21st.

Hi all,

I'd like to add Entity.subscriptions(), which returns SubscriptionSupport, which has the methods for subscribing/unsubscribing to events. And I'd like to deprecate the existing methods - in particular on EntityLocal.

I'd like to do the same for .policies(), .enrichers() and .groups().

See https://github.com/apache/incubator-brooklyn/pull/911

There are three big motivations for this:

 * Deprecating EntityLocal - this change deprecates the last methods of
   EntityLocal, so the interface can be deprecated.
 * Consistency with entity.config(), entity.sensors(), etc
 * Simplification of the Entity class (which has way too many methods)
   by grouping them.

Thoughts?

Aled

p.s. I really want to get our public API cleaned up while we are still on a 0.x release.

Reply via email to