KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > kernel > admin > util > AdminServiceMoc


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2005 EBM Websourcing, http://www.ebmwebsourcing.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id: AdminServiceMoc.java 14:23:02 ddesjardins $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.kernel.admin.util;
23
24 import java.util.ArrayList JavaDoc;
25 import java.util.List JavaDoc;
26
27 import javax.management.MBeanServer JavaDoc;
28 import javax.management.ObjectName JavaDoc;
29
30 /**
31  * Moc object of the admin service
32  *
33  * @author ddesjardins - eBMWebsourcing
34  */

35 public class AdminServiceMoc implements AdminServiceMocMBean {
36
37     /**
38      * MBean server
39      */

40     private MBeanServer JavaDoc beanServer;
41     
42     /**
43      * Set of binding component object name
44      */

45     public static List JavaDoc<ObjectName JavaDoc> bindingsCompo = new ArrayList JavaDoc<ObjectName JavaDoc>();
46
47     public AdminServiceMoc(MBeanServer JavaDoc beanServer) {
48         super();
49         this.beanServer = beanServer;
50         // Used to suppress the warning
51
this.beanServer.getClass();
52         bindingsCompo = new ArrayList JavaDoc<ObjectName JavaDoc>();
53     }
54
55     public ObjectName JavaDoc[] getBindingComponents() {
56         return bindingsCompo.toArray(new ObjectName JavaDoc[0]);
57     }
58
59     public ObjectName JavaDoc getComponentByName(String JavaDoc name) {
60         return null;
61     }
62
63     public ObjectName JavaDoc[] getEngineComponents() {
64         return bindingsCompo.toArray(new ObjectName JavaDoc[0]);
65     }
66
67     public String JavaDoc getSystemInfo() {
68         return null;
69     }
70
71     public ObjectName JavaDoc getSystemService(String JavaDoc serviceName) {
72         return null;
73     }
74
75     public ObjectName JavaDoc[] getSystemServices() {
76         return null;
77     }
78
79     public boolean isBinding(String JavaDoc componentName) {
80         return false;
81     }
82
83     public boolean isEngine(String JavaDoc componentName) {
84         return false;
85     }
86
87 }
88
Popular Tags