01: /*
02: * Copyright 2004-2007 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: package org.jpublish.action;
19:
20: import org.jpublish.JPublishContext;
21:
22: import com.anthonyeden.lib.config.Configuration;
23:
24: /** The Action interface represents a single programmatic action. Actions
25: can be attached to multiple locations within a site. Please see the
26: User's Guide for complete information on Actions.
27:
28: @author Anthony Eden
29: */
30:
31: public interface Action {
32:
33: /** Execute the action using the given context.
34:
35: @param context The current context
36: @param configuration The configuration
37: @throws Exception Any error
38: */
39:
40: public void execute(JPublishContext context,
41: Configuration configuration) throws Exception;
42:
43: }
|