| /******************************************************************************* |
| * Copyright (c) 2005, 2018 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * IBM Corporation - Initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.jst.server.core.internal; |
| |
| import org.eclipse.core.runtime.IStatus; |
| import org.eclipse.core.runtime.Status; |
| import org.eclipse.debug.core.ILaunch; |
| import org.eclipse.jst.server.core.JndiLaunchable; |
| import org.eclipse.wst.server.core.IServer; |
| import org.eclipse.wst.server.core.model.ClientDelegate; |
| /** |
| * |
| */ |
| public class J2EELaunchableClient extends ClientDelegate { |
| /* |
| * @see ClientDelegate#supports(ILaunchable) |
| */ |
| public boolean supports(IServer server, Object launchable, String launchMode) { |
| return (launchable instanceof JndiLaunchable); |
| } |
| |
| /* |
| * @see ClientDelegate#launch(ILaunchable) |
| */ |
| public IStatus launch(IServer server, Object launchable, String launchMode, ILaunch launch) { |
| if (Trace.FINEST) { |
| Trace.trace(Trace.STRING_FINEST, "JNDI client launched"); |
| } |
| return Status.OK_STATUS; |
| } |
| } |