+1
On 21/09/2015 06:27, Aled Sage wrote:
// 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.
--
Cloudsoft Corporation Limited, Registered in Scotland No: SC349230.
Registered Office: 13 Dryden Place, Edinburgh, EH9 1RP
This e-mail message is confidential and for use by the addressee only. If
the message is received by anyone other than the addressee, please return
the message to the sender by replying to it and then delete the message
from your computer. Internet e-mails are not necessarily secure. Cloudsoft
Corporation Limited does not accept responsibility for changes made to this
message after it was sent.
Whilst all reasonable care has been taken to avoid the transmission of
viruses, it is the responsibility of the recipient to ensure that the
onward transmission, opening or use of this message and any attachments
will not adversely affect its systems or data. No responsibility is
accepted by Cloudsoft Corporation Limited in this regard and the recipient
should carry out such virus and other checks as it considers appropriate.