KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.objectweb.petals.jbi.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.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 JavaDoc installationRoot, LoaderManager loadSrv, ComponentContextImpl componentContext, ComponentDescription componentDescription, InstallationContextImpl installContext, LifeCycleManagerService jmxAdmin, SystemState recoverySrv, ObjectName JavaDoc mbeanName, Logger logger) throws JBIException {
20         super(installationRoot, loadSrv, componentContext,
21             componentDescription, jmxAdmin, recoverySrv, mbeanName, logger);
22     }
23
24     @Override JavaDoc
25     protected void doInstall() throws JBIException {
26         throw new RuntimeException JavaDoc("doInstall testing exception");
27     }
28
29
30
31 }
32
Popular Tags