org.gcube.common.core.plugins
Class GCUBEPluginManager.PluginConsumer<PLUGINCONTEXT extends GCUBEPluginContext>

java.lang.Object
  extended by org.gcube.common.core.plugins.GCUBEPluginManager.PluginConsumer<PLUGINCONTEXT>
Type Parameters:
PLUGINCONTEXT - the type of of plugin context.
All Implemented Interfaces:
GCUBEConsumer<GCUBEPluginManager.PluginTopic,PLUGINCONTEXT>
Enclosing class:
GCUBEPluginManager<PLUGINCONTEXT extends GCUBEPluginContext>

public static class GCUBEPluginManager.PluginConsumer<PLUGINCONTEXT extends GCUBEPluginContext>
extends Object
implements GCUBEConsumer<GCUBEPluginManager.PluginTopic,PLUGINCONTEXT>

Base class for consumers of plugin management events.


Constructor Summary
GCUBEPluginManager.PluginConsumer()
           
 
Method Summary
protected  void onDeregistration(GCUBEEvent<? extends GCUBEPluginManager.PluginTopic,? extends PLUGINCONTEXT> event)
          Callback for a deregistration event.
<T1 extends GCUBEPluginManager.PluginTopic,P1 extends PLUGINCONTEXT>
void
onEvent(GCUBEEvent<T1,P1>... events)
          Notifies the consumer of one of more events about topics for which the consumer has previously subscribed with a GCUBEProducer
protected  void onRegistration(GCUBEEvent<? extends GCUBEPluginManager.PluginTopic,? extends PLUGINCONTEXT> event)
          Callback for a registration event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GCUBEPluginManager.PluginConsumer

public GCUBEPluginManager.PluginConsumer()
Method Detail

onEvent

public <T1 extends GCUBEPluginManager.PluginTopic,P1 extends PLUGINCONTEXT> void onEvent(GCUBEEvent<T1,P1>... events)
Notifies the consumer of one of more events about topics for which the consumer has previously subscribed with a GCUBEProducer

Specified by:
onEvent in interface GCUBEConsumer<GCUBEPluginManager.PluginTopic,PLUGINCONTEXT extends GCUBEPluginContext>
Type Parameters:
T1 - the topic type.
P1 - the payload type.
Parameters:
events - the events.

onRegistration

protected void onRegistration(GCUBEEvent<? extends GCUBEPluginManager.PluginTopic,? extends PLUGINCONTEXT> event)
Callback for a registration event.

Parameters:
event - the event.

onDeregistration

protected void onDeregistration(GCUBEEvent<? extends GCUBEPluginManager.PluginTopic,? extends PLUGINCONTEXT> event)
Callback for a deregistration event.

Parameters:
event - the event.


Copyright © 2012. All Rights Reserved.