diff --git a/org.springframework.beans/src/main/java/org/springframework/beans/factory/ListableBeanFactory.java b/org.springframework.beans/src/main/java/org/springframework/beans/factory/ListableBeanFactory.java index 0942874c18..98450d305d 100644 --- a/org.springframework.beans/src/main/java/org/springframework/beans/factory/ListableBeanFactory.java +++ b/org.springframework.beans/src/main/java/org/springframework/beans/factory/ListableBeanFactory.java @@ -209,7 +209,7 @@ $ *

Does not consider any hierarchy this factory may participate in. * @see BeanFactoryUtils#beansOfTypeIncludingAncestors(ListableBeanFactory, Class, boolean, boolean) */ Map getBeansOfType(Class type, boolean includeNonSingletons, boolean allowEagerInit) - throws BeansException; + throws BeansException; /** * Find all beans whose Class has the supplied {@link java.lang.annotation.Annotation} type. diff --git a/org.springframework.beans/src/main/java/org/springframework/beans/factory/parsing/EmptyReaderEventListener.java b/org.springframework.beans/src/main/java/org/springframework/beans/factory/parsing/EmptyReaderEventListener.java index 914280a647..b5d49c09a1 100644 --- a/org.springframework.beans/src/main/java/org/springframework/beans/factory/parsing/EmptyReaderEventListener.java +++ b/org.springframework.beans/src/main/java/org/springframework/beans/factory/parsing/EmptyReaderEventListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2007 the original author or authors. + * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,7 @@ package org.springframework.beans.factory.parsing; /** - * Empty implementation of the ReaderEventListener interface, + * Empty implementation of the {@link ReaderEventListener} interface, * providing no-op implementations of all callback methods. * * @author Juergen Hoeller diff --git a/org.springframework.context/src/main/java/org/springframework/context/ApplicationListener.java b/org.springframework.context/src/main/java/org/springframework/context/ApplicationListener.java index 0e57ebd51a..fc40e50222 100644 --- a/org.springframework.context/src/main/java/org/springframework/context/ApplicationListener.java +++ b/org.springframework.context/src/main/java/org/springframework/context/ApplicationListener.java @@ -23,8 +23,14 @@ import java.util.EventListener; * Based on the standard java.util.EventListener interface * for the Observer design pattern. * + *

As of Spring 3.0, an ApplicationListener can generically declare the event type + * that it is interested in. When registered with a Spring ApplicationContext, events + * will be filtered accordingly, with the listener getting invoked for matching event + * objects only. + * * @author Rod Johnson * @author Juergen Hoeller + * @param the specific ApplicationEvent subclass to listen to * @see org.springframework.context.event.ApplicationEventMulticaster */ public interface ApplicationListener extends EventListener {