KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > server > management > EmbeddedIdentifier


1 /**
2  *
3  */

4 package org.objectweb.easybeans.server.management;
5
6 import org.objectweb.easybeans.server.Embedded;
7 import org.objectweb.easybeans.jsr77.JSR77ManagementIdentifier;
8
9 /**
10  * Generates an ObjectName for the {@link Embedded} component.
11  * @author Guillaume Sauthier
12  */

13 public class EmbeddedIdentifier extends JSR77ManagementIdentifier<Embedded> {
14
15     /**
16      * JMX MBean Type.
17      */

18     private static final String JavaDoc TYPE = "J2EEServer";
19
20     /**
21      * {@inheritDoc}
22      */

23     public String JavaDoc getAdditionnalProperties(final Embedded instance) {
24         return null;
25     }
26
27     /**
28      * {@inheritDoc}
29      */

30     public String JavaDoc getNamePropertyValue(final Embedded instance) {
31         return "EasyBeans_" + instance.getID();
32     }
33
34     /**
35      * {@inheritDoc}
36      */

37     public String JavaDoc getTypeValue() {
38         return TYPE;
39     }
40
41 }
42
Popular Tags