KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > tool > codegen > internal > ServiceOptionSet


1
2 /*
3  * Enhydra Java Application Server Project
4  *
5  * The contents of this file are subject to the Enhydra Public License
6  * Version 1.1 (the "License"); you may not use this file except in
7  * compliance with the License. You may obtain a copy of the License on
8  * the Enhydra web site ( http://www.enhydra.org/ ).
9  *
10  * Software distributed under the License is distributed on an "AS IS"
11  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
12  * the License for the specific terms governing rights and limitations
13  * under the License.
14  *
15  * The Initial Developer of the Enhydra Application Server is Lutris
16  * Technologies, Inc. The Enhydra Application Server and portions created
17  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
18  * All Rights Reserved.
19  *
20  * Contributor(s):
21  * Paul Mahar
22  *
23  */

24 package org.enhydra.tool.codegen.internal;
25
26 // ToolBox imports
27
import org.enhydra.tool.codegen.ProjectOptionSet;
28 import org.enhydra.tool.codegen.GeneratorException;
29 import org.enhydra.tool.codegen.GeneratorOption;
30
31 // Standard imports
32
import java.util.ResourceBundle JavaDoc;
33 public class ServiceOptionSet extends ProjectOptionSet {
34
35      private final String JavaDoc DEF_SERVICE = "Untitled"; // nores
36
/**
37      * Property name for the project name option.
38      */

39     public static final String JavaDoc SERVICE = "service"; // nores
40

41     /**
42      * MBean support
43      */

44     public static final String JavaDoc MBEAN = "mbean"; // nores
45

46     public ServiceOptionSet() {
47         super();
48         try {
49             add (new GeneratorOption (SERVICE, DEF_SERVICE,
50                                            "SERVICE",
51                                            "The name for the SERVICE classes",
52                                            true, true));
53             add(new GeneratorOption(MBEAN, true, "MBean support", false));
54         } catch (GeneratorException e) {
55             e.printStackTrace();
56         }
57     }
58
59 }
60
Popular Tags