KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > deployer > management > DeployerIdentifier


1 /**
2  * EasyBeans
3  * Copyright (C) 2006 Bull S.A.S.
4  * Contact: easybeans@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: DeployerIdentifier.java 645 2006-06-13 11:57:12Z sauthieg $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.easybeans.deployer.management;
27
28 import org.objectweb.easybeans.deployer.IDeployer;
29 import org.objectweb.easybeans.management.CommonsManagementIdentifier;
30
31 /**
32  * Generates an ObjectName for an EJB3Deployer MBean.
33  * @author Guillaume Sauthier
34  */

35 public class DeployerIdentifier extends CommonsManagementIdentifier<IDeployer> {
36
37     /**
38      * JMX MBean Type.
39      */

40     private static final String JavaDoc TYPE = "EJB3Deployer";
41
42     /**
43      * {@inheritDoc}
44      */

45     public String JavaDoc getAdditionnalProperties(final IDeployer instance) {
46         return null;
47     }
48
49     /**
50      * {@inheritDoc}
51      */

52     public String JavaDoc getDomain() {
53         // TODO Maybe we should return something else that "" ?
54
return "";
55     }
56
57     /**
58      * {@inheritDoc}
59      */

60     public String JavaDoc getNamePropertyValue(final IDeployer instance) {
61         return "EasyBeans";
62     }
63
64     /**
65      * {@inheritDoc}
66      */

67     public String JavaDoc getTypeValue() {
68         return TYPE;
69     }
70
71 }
72
Popular Tags