@Override
protected void initialize()
{
// DatabaseUpdateDao is needed by the updater:
PollPluginUpdates.dao = getDatabaseUpdateDao();
final RegistryEntry entry = new RegistryEntry(ID, PollDao.class, pollDao, "plugins.poll");
final RegistryEntry eventEntry = new RegistryEntry("pollEvent", PollEventDao.class, pollEventDao, "plugins.poll");
final RegistryEntry attendeeEntry = new RegistryEntry("pollAttendee", PollAttendeeDao.class, pollAttendeeDao, "plugins.poll");
final RegistryEntry resultEntry = new RegistryEntry("pollResult", PollResultDao.class, pollResultDao, "plugins.poll");
// The CalendarDao is automatically available by the scripting engine!
register(entry);
register(eventEntry);
register(attendeeEntry);