01: package org.jasig.portal.events;
02:
03: import org.jasig.portal.spring.PortalApplicationContextFacade;
04: import org.springframework.context.ApplicationEventPublisher;
05:
06: public final class EventPublisherLocator {
07: /** Single instance of the ApplicationEventPublisher that uPortal will use. */
08: private final static ApplicationEventPublisher applicationEventPublisher = (ApplicationEventPublisher) PortalApplicationContextFacade
09: .getPortalApplicationContext();
10:
11: /**
12: * Method to retrieve the cache factory
13: *
14: * @return the cache factory.
15: */
16: public static final ApplicationEventPublisher getApplicationEventPublisher() {
17: return applicationEventPublisher;
18: }
19: }
|