01: /***
02: * jwma Java WebMail
03: * Copyright (c) 2000-2003 jwma team
04: *
05: * jwma is free software; you can distribute and use this source
06: * under the terms of the BSD-style license received along with
07: * the distribution.
08: ***/package dtw.webmail.plugin;
09:
10: import java.util.*;
11:
12: import dtw.webmail.model.JwmaException;
13:
14: /**
15: * Generic Interface for any plugin used from jwma.<p>
16: *
17: * @author Dieter Wimberger
18: * @version 0.9.7 07/02/2003
19: */
20: public interface JwmaPlugin {
21:
22: /**
23: * Activates the plugin for subsequent use.
24: * <p>
25: * This method is called during bootstrap to allow
26: * an implementation to initialize properly.
27: * If the plugin cannot perform it's task, it has to
28: * throw a <tt>JwmaException</tt>.
29: *
30: * @throws JwmaException if initialization failed.
31: */
32: public void activate() throws JwmaException;
33:
34: /**
35: * Deactivates the plugin.
36: * <p>
37: * This method is called during shutdown or probably
38: * on dynamic implementation exchange, to allow an
39: * implementation to finalize properly.
40: */
41: public void deactivate();
42:
43: }//interface JwmaPlugin
|