1 package org.objectweb.petals.jbi.mock; 2 3 import java.net.URI ; 4 5 import javax.jbi.JBIException; 6 import javax.management.ObjectName ; 7 8 import org.objectweb.petals.classloader.LoaderManager; 9 import org.objectweb.petals.jbi.component.context.ComponentContextImpl; 10 import org.objectweb.petals.jbi.component.context.InstallationContextImpl; 11 import org.objectweb.petals.jbi.component.lifecycle.Installer; 12 import org.objectweb.petals.jbi.management.service.LifeCycleManagerService; 13 import org.objectweb.petals.jbi.management.systemstate.SystemState; 14 import org.objectweb.petals.tools.jbicommon.descriptor.ComponentDescription; 15 import org.objectweb.util.monolog.api.Logger; 16 17 public class MockInstaller extends Installer { 18 19 public MockInstaller(URI installationRoot, LoaderManager loadSrv, ComponentContextImpl componentContext, ComponentDescription componentDescription, InstallationContextImpl installContext, LifeCycleManagerService jmxAdmin, SystemState recoverySrv, ObjectName mbeanName, Logger logger) throws JBIException { 20 super(installationRoot, loadSrv, componentContext, 21 componentDescription, jmxAdmin, recoverySrv, mbeanName, logger); 22 } 23 24 @Override 25 protected void doInstall() throws JBIException { 26 throw new RuntimeException ("doInstall testing exception"); 27 } 28 29 30 31 } 32 | Popular Tags |