KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > ioc > deployment > Deployable


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

6
7 package org.jfox.ioc.deployment;
8
9 import java.io.File JavaDoc;
10 import java.net.URL JavaDoc;
11 import java.net.URLClassLoader JavaDoc;
12
13 import org.jfox.ioc.deploy.DeployException;
14
15 /**
16  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
17  */

18
19 public interface Deployable {
20
21     /**
22      * get the xml descriptor URL
23      *
24      * @return
25      */

26     URL JavaDoc getDescriptorURL();
27
28     /**
29      * get package to be deployed, directory or file
30      *
31      * @return
32      */

33     File JavaDoc getPackage();
34
35     /**
36      * get the classloader that can load the component
37      *
38      * @return
39      */

40     URLClassLoader JavaDoc getClassLoader();
41
42     /**
43      * deploy to directory
44      */

45     void deploy(Deployer deployer) throws DeployException;
46
47     /**
48      * get the directory that the component to be deployed
49      * some type modules needed, example war,ear
50      */

51     File JavaDoc getTempDeployDirectory();
52 }
53
Popular Tags