View Javadoc

1   /**
2    * Copyright 2005-2006 the original author or authors.
3    *
4    * Licensed under the Gnu General Pubic License, Version 2.0 (the
5    * "License"); you may not use this file except in compliance with
6    * the License. You may obtain a copy of the License at
7    *
8    *      http://www.opensource.org/licenses/gpl-license.php
9    *
10   * This program is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13   * See the Gnu General Public License for more details.
14   */
15  package org.figure8.join.businessobjects.environment;
16  
17  /**
18   * A Service is a base Resource implementation.
19   * @author <a href="mailto:laurent.broudoux@free.fr">Laurent Broudoux</a>
20   * @version $Revision: 1.3 $
21   *
22   * @hibernate.subclass table="join_resources" discriminator-value="SERVICE"
23   */
24  public class Service extends AbstractResource{
25  
26     // Static -------------------------------------------------------------------
27  
28     /** The category information of the Service implementation of AbstractResource */
29     public static final String CATEGORY = "Service";
30  
31  
32     // Constructors -------------------------------------------------------------
33  
34     /** Creates a new instance of Service */
35     public Service(){
36        super();
37     }
38  
39     /**
40      * Creates a new instance of Service with mandatory attribute
41      * @param name This resource name (must be unique)
42      */
43     public Service(String name, ServiceType serviceType){
44        super(name, serviceType);
45     }
46  
47  
48     // Implementation of AbstractResource ---------------------------------------
49  
50     /**
51      * Return the category information on this resource.
52      * @return The category information as character string
53      */
54     public String getCategory(){
55        return CATEGORY;
56     }
57  }
58