Package: UpdateDelegate

UpdateDelegate

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2008, 2010 VMware Inc.
3: * All rights reserved. This program and the accompanying materials
4: * are made available under the terms of the Eclipse Public License v1.0
5: * which accompanies this distribution, and is available at
6: * http://www.eclipse.org/legal/epl-v10.html
7: *
8: * Contributors:
9: * VMware Inc. - initial contribution
10: *******************************************************************************/
11:
12: package org.eclipse.virgo.test.stubs.framework;
13:
14: import java.io.InputStream;
15:
16: import org.osgi.framework.Bundle;
17: import org.osgi.framework.BundleException;
18:
19: /**
20: * An interface to allow delegation of calls to {@link Bundle#update()} and {@link Bundle#update(InputStream)} to be
21: * serviced in a test environment.
22: * <p />
23: *
24: * <strong>Concurrent Semantics</strong><br />
25: *
26: * Implementations must be threadsafe
27: *
28: */
29: public interface UpdateDelegate {
30:
31: /**
32: * @param bundle The {@link StubBundle} is being called upon
33: * @throws BundleException
34: * @see Bundle#update()
35: */
36: void update(StubBundle bundle) throws BundleException;
37:
38: }