KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > jbi > component > mock > MockServiceAssemblyLifeCycle


1 package org.objectweb.petals.jbi.component.mock;
2
3 import java.net.URI JavaDoc;
4
5 import javax.jbi.JBIException;
6 import javax.management.ObjectName JavaDoc;
7
8 import org.objectweb.petals.jbi.component.lifecycle.ServiceAssemblyLifeCycle;
9 import org.objectweb.petals.jbi.component.lifecycle.ServiceUnitLifeCycle;
10 import org.objectweb.petals.jbi.management.systemstate.SystemState;
11 import org.objectweb.petals.repository.RepositoryService;
12 import org.objectweb.petals.tools.jbicommon.descriptor.ServiceAssembly;
13 import org.objectweb.petals.util.LoggingUtil;
14
15 public class MockServiceAssemblyLifeCycle extends ServiceAssemblyLifeCycle {
16
17     public MockServiceAssemblyLifeCycle(ObjectName JavaDoc mbeanName, LoggingUtil log, ServiceAssembly serviceAssembly, RepositoryService repositoryService, SystemState recoverySrv, URI JavaDoc installationRoot) {
18         super(mbeanName, log, serviceAssembly, repositoryService, recoverySrv,
19                 installationRoot);
20     }
21     
22
23     @Override JavaDoc
24     public void shutDown() throws JBIException {
25         throw new JBIException("shutdown testing exception");
26     }
27
28     @Override JavaDoc
29     public void start() throws JBIException {
30         throw new JBIException("start testing exception");
31     }
32     
33     @Override JavaDoc
34     public void stop() throws JBIException {
35         throw new JBIException("stop testing exception");
36     }
37
38
39     @Override JavaDoc
40     public void registerSUIntoSA(String JavaDoc suName, ServiceUnitLifeCycle serviceUnitLifeCycle) throws JBIException {
41         throw new JBIException("registerSUIntoSA testing exception");
42     }
43
44 }
45
Popular Tags