Enrichers.builder()public class AddingEnricher extends AbstractEnricher implements SensorEventListener
 addEnricher(Enrichers.builder()
         .combining(sources)
         .publishing(target)
         .computeSum()
         .build());
 
 
 if need to sub-classAbstractEntityAdjunct.AdjunctTagSupport, AbstractEntityAdjunct.BasicSubscriptionSupportBrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupportConfigurable.ConfigurationSupportBrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternalSUPPRESS_DUPLICATESNOOP| Constructor and Description | 
|---|
| AddingEnricher(Sensor[] sources,
              Sensor<? extends java.lang.Number> target)Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| static <V> V | cast(java.lang.Number value,
    java.lang.Class<V> type)Deprecated.  | 
| void | onEvent(SensorEvent event)Deprecated.  The  SensorEventhandler method. | 
| void | setEntity(EntityLocal entity)Deprecated.  | 
getEnricherType, getRebindSupport, relationsconfig, configure, destroy, getAdjunctType, getConfig, getConfigMap, getDisplayName, getUniqueTag, isDestroyed, isRunning, setConfig, setDisplayName, subscribe, subscribeToChildren, subscribeToMembers, subscriptions, tags, toString, unsubscribe, unsubscribegetCatalogItemId, getId, getManagementContext, init, rebind, setCatalogItemId, setManagementContextequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUniqueTag, isDestroyed, isRunninggetCatalogItemId, getDisplayName, subscriptions, tagsconfig, getConfig, setConfigsetCatalogItemIdpublic void setEntity(EntityLocal entity)
setEntity in class AbstractEnricherpublic void onEvent(SensorEvent event)
SensorEventListenerSensorEvent handler method.onEvent in interface SensorEventListenerpublic static <V> V cast(java.lang.Number value,
         java.lang.Class<V> type)