/** * Create a notification listener registry using the passed * listener registration factory.<p> * * @param factory the factory to create registrations, use * null for the default factory */ public ListenerRegistry(ListenerRegistrationFactory factory) { if (factory == null) this.factory = new DefaultListenerRegistrationFactory(); else this.factory = factory; }