org.gcube.common.core.resources
Class GCUBEResource.ResourceConsumer

java.lang.Object
  extended by org.gcube.common.core.resources.GCUBEResource.ResourceConsumer
All Implemented Interfaces:
GCUBEConsumer<GCUBEResource.ResourceTopic,Object>
Enclosing class:
GCUBEResource

public static class GCUBEResource.ResourceConsumer
extends Object
implements GCUBEConsumer<GCUBEResource.ResourceTopic,Object>

Base implementation of a GCUBEConsumer of ResourceEvents.


Constructor Summary
GCUBEResource.ResourceConsumer()
           
 
Method Summary
protected  void onAddScope(GCUBEResource.AddScopeEvent event)
          Add scope event callback.
<T1 extends GCUBEResource.ResourceTopic,P1>
void
onEvent(GCUBEEvent<T1,P1>... events)
          Receives RI lifetime events and dispatches them to topic-specific callbacks.
protected  void onRemoveScope(GCUBEResource.RemoveScopeEvent event)
          Remove scope event callback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GCUBEResource.ResourceConsumer

public GCUBEResource.ResourceConsumer()
Method Detail

onEvent

public <T1 extends GCUBEResource.ResourceTopic,P1> void onEvent(GCUBEEvent<T1,P1>... events)
Receives RI lifetime events and dispatches them to topic-specific callbacks.

Specified by:
onEvent in interface GCUBEConsumer<GCUBEResource.ResourceTopic,Object>
Type Parameters:
T1 - the topic type.
P1 - the payload type.
Parameters:
events - the events.

onAddScope

protected void onAddScope(GCUBEResource.AddScopeEvent event)
Add scope event callback.

Parameters:
event - the event.

onRemoveScope

protected void onRemoveScope(GCUBEResource.RemoveScopeEvent event)
Remove scope event callback.

Parameters:
event - the event.


Copyright © 2013. All Rights Reserved.