deboer | 3b38f3e | 2007-03-28 04:33:16 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2007 IBM Corporation and others. |
| 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 | * IBM Corporation - Initial API and implementation |
| 10 | *******************************************************************************/ |
deboer | 5382ce7 | 2007-04-25 04:24:24 +0000 | [diff] [blame] | 11 | package org.eclipse.wst.server.preview.internal; |
deboer | 3b38f3e | 2007-03-28 04:33:16 +0000 | [diff] [blame] | 12 | |
deboer | 3b38f3e | 2007-03-28 04:33:16 +0000 | [diff] [blame] | 13 | import org.eclipse.equinox.app.IApplication; |
| 14 | import org.eclipse.equinox.app.IApplicationContext; |
deboer | 3b38f3e | 2007-03-28 04:33:16 +0000 | [diff] [blame] | 15 | |
| 16 | public class PreviewApplication implements IApplication { |
deboer | afd0574 | 2007-03-29 03:17:33 +0000 | [diff] [blame] | 17 | protected PreviewStarter starter; |
deboer | 3b38f3e | 2007-03-28 04:33:16 +0000 | [diff] [blame] | 18 | |
| 19 | public Object start(IApplicationContext appContext) throws Exception { |
deboer | afd0574 | 2007-03-29 03:17:33 +0000 | [diff] [blame] | 20 | starter = new PreviewStarter(null); |
| 21 | starter.run(); |
deboer | 3b38f3e | 2007-03-28 04:33:16 +0000 | [diff] [blame] | 22 | return EXIT_OK; |
| 23 | } |
| 24 | |
| 25 | public void stop() { |
deboer | afd0574 | 2007-03-29 03:17:33 +0000 | [diff] [blame] | 26 | starter.stop(); |
deboer | 3b38f3e | 2007-03-28 04:33:16 +0000 | [diff] [blame] | 27 | } |
| 28 | } |