KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > beans > factory > parsing > ReaderEventListener


1 /*
2  * Copyright 2002-2007 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.springframework.beans.factory.parsing;
18
19 import java.util.EventListener JavaDoc;
20
21 /**
22  * Interface that receives callbacks for component, alias and import
23  * registrations during a bean definition reading process.
24  *
25  * @author Rob Harrop
26  * @author Juergen Hoeller
27  * @since 2.0
28  * @see ReaderContext
29  */

30 public interface ReaderEventListener extends EventListener JavaDoc {
31
32     /**
33      * Notification that the given defaults has been registered.
34      * @param defaultsDefinition a descriptor for the defaults
35      * @see org.springframework.beans.factory.xml.DocumentDefaultsDefinition
36      */

37     void defaultsRegistered(DefaultsDefinition defaultsDefinition);
38
39     /**
40      * Notification that the given component has been registered.
41      * @param componentDefinition a descriptor for the new component
42      * @see BeanComponentDefinition
43      */

44     void componentRegistered(ComponentDefinition componentDefinition);
45
46     /**
47      * Notification that the given alias has been registered.
48      * @param aliasDefinition a descriptor for the new alias
49      */

50     void aliasRegistered(AliasDefinition aliasDefinition);
51
52     /**
53      * Notification that the given import has been processed.
54      * @param importDefinition a descriptor for the import
55      */

56     void importProcessed(ImportDefinition importDefinition);
57
58 }
59
Popular Tags