1 package org.objectweb.petals.jbi.component.mock; 2 3 import java.net.URI ; 4 5 import javax.jbi.JBIException; 6 import javax.management.ObjectName ; 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 mbeanName, LoggingUtil log, ServiceAssembly serviceAssembly, RepositoryService repositoryService, SystemState recoverySrv, URI installationRoot) { 18 super(mbeanName, log, serviceAssembly, repositoryService, recoverySrv, 19 installationRoot); 20 } 21 22 23 @Override 24 public void shutDown() throws JBIException { 25 throw new JBIException("shutdown testing exception"); 26 } 27 28 @Override 29 public void start() throws JBIException { 30 throw new JBIException("start testing exception"); 31 } 32 33 @Override 34 public void stop() throws JBIException { 35 throw new JBIException("stop testing exception"); 36 } 37 38 39 @Override 40 public void registerSUIntoSA(String suName, ServiceUnitLifeCycle serviceUnitLifeCycle) throws JBIException { 41 throw new JBIException("registerSUIntoSA testing exception"); 42 } 43 44 } 45 | Popular Tags |