KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > controls > runtime > assembly > EJBAssemblyContext


1 package org.apache.beehive.controls.runtime.assembly;
2
3 /*
4  * Copyright 2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  * $Header:$
19  */

20
21 import org.apache.beehive.controls.api.assembly.ControlAssemblyContext;
22 import org.apache.beehive.controls.api.assembly.ControlAssemblyException;
23
24 import java.io.File JavaDoc;
25 import java.util.Map JavaDoc;
26 import java.util.Set JavaDoc;
27
28 /**
29  * A ControlAssemblyContext implementation supporting standard EJB modules
30  */

31 public class EJBAssemblyContext extends BaseAssemblyContext
32                                 implements ControlAssemblyContext.EJBModule
33 {
34     public static class Factory implements ControlAssemblyContext.Factory
35     {
36         public EJBAssemblyContext newInstance( Class JavaDoc controlIntfOrExt,
37                                                Map JavaDoc<String JavaDoc,String JavaDoc> bindings,
38                                                Set JavaDoc<String JavaDoc> clients,
39                                                File JavaDoc moduleRoot,
40                                                String JavaDoc moduleName,
41                                                File JavaDoc srcOutputRoot )
42             throws ControlAssemblyException
43         {
44             return new EJBAssemblyContext( controlIntfOrExt, bindings, clients,
45                 moduleRoot, moduleName, srcOutputRoot );
46         }
47     }
48
49     protected EJBAssemblyContext( Class JavaDoc controlIntfOrExt, Map JavaDoc<String JavaDoc,String JavaDoc> bindings,
50                                   Set JavaDoc<String JavaDoc> clients, File JavaDoc moduleRoot,
51                                   String JavaDoc moduleName, File JavaDoc srcOutputRoot )
52         throws ControlAssemblyException
53     {
54         super( controlIntfOrExt, bindings, clients, moduleRoot, moduleName, srcOutputRoot );
55     }
56
57     public File JavaDoc getEjbJarXml()
58     {
59         return new File JavaDoc( getModuleDir(), "META-INF" + File.separator + "ejb-jar.xml");
60     }
61 }
62
Popular Tags