|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.objectplanet.survey.plugin.PluginBusSurvey
public class PluginBusSurvey
This class is opinio's event notification mechanism for survey type events. To enhance performance and scalability, the component that is registered on the bus can subscribe to events for a single survey, or to all surveys. Subscribing to all surveys (indicating the survey id 0) should be done with care, because the plugin must then handle a lot of events (several events per question per respondent). This class is deprecated. Use the new event mechanism in the com.objectplanet.survey.event and com.objectplanet.survey.event.events package.
Constructor Summary | |
---|---|
PluginBusSurvey()
Deprecated. Constructs an instance of the PluginBusSurvey. |
Method Summary | |
---|---|
static void |
addToBus(IPBComponent comp,
long surveyId)
Deprecated. |
static IPBComponent[] |
getComponents(long surveyId)
Deprecated. |
void |
handleEvent(Event event)
Deprecated. Listens to internal events, and passes them on to listeners (plugins). |
PluginBusSurvey |
instance()
Deprecated. |
static void |
removeFromBus(IPBComponent comp,
long surveyId)
Deprecated. |
static void |
send(PluginBusEvent event,
long surveyId)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginBusSurvey()
Method Detail |
---|
public PluginBusSurvey instance()
public static IPBComponent[] getComponents(long surveyId)
surveyId
- Survey id of the plugin bus to get. 0 will return
components that have registered to receive all events.
public static void addToBus(IPBComponent comp, long surveyId)
comp
- The component to addsurveyId
- The feature to be added to the ToBus attributepublic static void removeFromBus(IPBComponent comp, long surveyId)
comp
- The component to removesurveyId
- Survey id of the survey to receive events from. 0 (zero)
specifies all surveys. Use the value 0 with care, because
this may reduce performance of the application.public static void send(PluginBusEvent event, long surveyId)
event
- The eventsurveyId
- Sends events to all listening plugins.public void handleEvent(Event event)
handleEvent
in interface IEventListener
event
- The eventIEventListener.handleEvent(com.objectplanet.survey.event.Event)
|
Copyright ? ObjectPlanet Inc. All Rights Reserved. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |