KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > jbi > mock > MockLifeCycleManagerService


1 /**
2  * PETALS: PETALS Services Platform
3  * Copyright (C) 2005 EBM WebSourcing
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 any later version.
9  *
10  * This library 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. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18  * USA.
19  *
20  * Initial developer(s): EBM WebSourcing
21  * --------------------------------------------------------------------------
22  * $Id: MockLifeCycleManagerService.java,v 1.2 2005/07/22 10:24:27 wjoseh Exp $
23  * --------------------------------------------------------------------------
24  */

25 package org.objectweb.petals.jbi.mock;
26
27 import java.util.Map JavaDoc;
28
29 import javax.management.MBeanServer JavaDoc;
30 import javax.management.ObjectName JavaDoc;
31
32 import org.objectweb.petals.jbi.component.lifecycle.ComponentLifeCycle;
33 import org.objectweb.petals.jbi.component.lifecycle.Installer;
34 import org.objectweb.petals.jbi.component.lifecycle.LifeCycleAbstract;
35 import org.objectweb.petals.jbi.component.lifecycle.ServiceAssemblyLifeCycle;
36 import org.objectweb.petals.jbi.management.service.LifeCycleManagerService;
37 import org.objectweb.petals.jbi.management.service.MBeanNamesImpl;
38 import org.objectweb.petals.jbi.management.service.ManagementException;
39
40 public class MockLifeCycleManagerService implements LifeCycleManagerService {
41
42     public ObjectName JavaDoc getAdminServiceMBeanName() throws ManagementException {
43         return null;
44     }
45
46     public Map JavaDoc<ObjectName JavaDoc, ComponentLifeCycle> getBindingCompoLifeCycles() {
47         return null;
48     }
49
50     public ComponentLifeCycle getComponentByName(String JavaDoc name) {
51         return null;
52     }
53
54     public ObjectName JavaDoc getDeploymentServiceMBeanName()
55         throws ManagementException {
56         return null;
57     }
58
59     public Map JavaDoc<ObjectName JavaDoc, ComponentLifeCycle> getEngineCompoLifeCycles() {
60         return null;
61     }
62
63     public ObjectName JavaDoc getInstallationServiceMBeanName()
64         throws ManagementException {
65         return null;
66     }
67
68     public ObjectName JavaDoc getInstallerByName(String JavaDoc name) {
69         return null;
70     }
71
72     public Map JavaDoc<ObjectName JavaDoc, Installer> getInstallers() {
73         return null;
74     }
75
76     public MBeanNamesImpl getMBeanNames() {
77         return null;
78     }
79
80     public MBeanServer JavaDoc getMBeanServer() {
81         return null;
82     }
83
84     public ServiceAssemblyLifeCycle getServiceAssemblyByName(String JavaDoc saName) {
85         return null;
86     }
87
88     public Map JavaDoc<String JavaDoc, ServiceAssemblyLifeCycle> getServiceAssemblyLifeCycles() {
89         return null;
90     }
91
92     public Map JavaDoc<ObjectName JavaDoc, LifeCycleAbstract> getSystemServices() {
93         return null;
94     }
95
96     public ObjectName JavaDoc registerBindingComponent(ComponentLifeCycle lifeCycle)
97         throws ManagementException {
98         return null;
99     }
100
101     public ObjectName JavaDoc registerEngineComponent(ComponentLifeCycle lifeCycle)
102         throws ManagementException {
103         return null;
104     }
105
106     public ObjectName JavaDoc registerInstaller(Installer installerMBean)
107         throws ManagementException {
108         return null;
109     }
110
111     public void registerServiceAssembly(String JavaDoc saName,
112             ServiceAssemblyLifeCycle serviceAssemblyLifeCycle) {
113     }
114
115     public void unregisterBindingComponent(ObjectName JavaDoc name)
116         throws ManagementException {
117     }
118
119     public void unregisterEngineComponent(ObjectName JavaDoc name)
120         throws ManagementException {
121     }
122
123     public void unregisterInstaller(ObjectName JavaDoc name) throws ManagementException {
124         throw new ManagementException("unregisterInstaller testing exception");
125     }
126
127     public void unregisterServiceAssembly(String JavaDoc saName)
128         throws ManagementException {
129     }
130
131 }
132
Popular Tags