Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TODO: Provide examples of Implementing and Registering Configurations in Spring and Guice.

Java Analogy – This Java code will perform the exact same steps as the above Spring configuration.

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 can perform an action in your EventListener whenever an event is fired)
EventListener listener = new org.my.EventListener();
eventService.registerEventListener(listener);

Note: The above is completely valid Java code, assuming you create a new org.my.EventListener class, or replace it with a different, existing listener.

Architectural Overview

DSpace Kernel

...