...
Code Block |
---|
//Initialize DSpace utility/helper object (to interact with the Kernel) DSpace dspace = new DSpace(); //Get the EventService registered with the DSpace Kernel EventService eventService = dspace.getEventService(); //Register a new EventListener with the existing EventService //(Allows you canto perform an action in your EventListener whenever an event is fired) EventListener listener = new org.my.EventListener(); eventService.registerEventListener(listener); |
...