KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > jdo > spi > RegisterClassListener


1 /*
2  * Copyright 2005 The Apache Software Foundation.
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 /*
18  * RegisterClassListener.java
19  *
20  */

21
22 package javax.jdo.spi;
23
24 import java.util.EventListener JavaDoc;
25
26 /**
27  * A "RegisterClassEvent" event gets fired whenever a persistence-capable class
28  * is loaded and gets registered with the <code>JDOImplHelper</code>. You can register a
29  * <code>RegisterClassListener</code> so as to be notified of any registration of a
30  * persistence-capable class.
31  *
32  * @version 1.0
33  */

34 public interface RegisterClassListener
35     extends EventListener JavaDoc
36 {
37     /**
38      * This method gets called when a persistence-capable class is registered.
39      * @param event a <code>RegisterClassEvent</code> instance describing the registered
40      * class plus metadata.
41      */

42     public void registerClass(RegisterClassEvent event);
43 }
44
Popular Tags