Github user grkvlt commented on the pull request:
https://github.com/apache/incubator-brooklyn/pull/394#issuecomment-92905527
Question for @ahgittin or @aledsage - should I implement the same pattern
as other `NonDeploment`_Blah_ classes, saving the inital management context
like this:
```Java
@Override
public <T> SubscriptionHandle subscribe(Entity producer, Sensor<T>
sensor, SensorEventListener<? super T> listener) {
if (isInitialManagementContextReal()) {
return
initialManagementContext.getSubscriptionContext(subscriber).subscribe(producer,
sensor, listener);
} else throw nonDeploymentContextError();
}
```
Also, what about a `NonDeploymentSubscriptionManager` to replace the
`QueueingSubscriptionManager` as well?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---