KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > components > repository > RepositoryInterceptor


1 /*
2 * Copyright 1999-2004 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 /* Created on Oct 18, 2003 7:00:43 PM by unico */
17 package org.apache.cocoon.components.repository;
18
19 import org.apache.excalibur.source.Source;
20 import org.apache.excalibur.source.SourceException;
21
22 /**
23  * TODO describe class
24  *
25  * Instances must be thread safe.
26  *
27  * @author <a HREF="mailto:unico@apache.org">Unico Hommes</a>
28  */

29 public interface RepositoryInterceptor {
30     
31     public static final String JavaDoc ROLE = RepositoryInterceptor.class.getName();
32     
33     /** called before a source is removed */
34     public abstract void preRemoveSource(Source source) throws SourceException;
35     
36     /** called before a source was successfully removed */
37     public abstract void postRemoveSource(Source source) throws SourceException;
38     
39     /** called before a source is stored */
40     public abstract void preStoreSource(Source source) throws SourceException;
41     
42     /** called after a source was successfully stored */
43     public abstract void postStoreSource(Source source) throws SourceException;
44     
45 }
46
Popular Tags