| /********************************************************************** |
| * Copyright (c) 2003 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Common Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/cpl-v10.html |
| * |
| * Contributors: |
| * IBM - Initial API and implementation |
| **********************************************************************/ |
| package org.eclipse.jst.server.j2ee; |
| |
| import java.util.Properties; |
| |
| import org.eclipse.wst.server.core.model.ILaunchable; |
| /** |
| * |
| */ |
| public class JndiLaunchable implements ILaunchable { |
| public static final String ID = "jndi"; |
| |
| private Properties props; |
| private String jndiName; |
| private String server; |
| private int port; |
| |
| public JndiLaunchable(Properties props, String jndiName) { |
| this.jndiName = jndiName; |
| this.props = props; |
| } |
| |
| /* |
| * @see ILaunchable#getId() |
| */ |
| public String getId() { |
| return ID; |
| } |
| |
| public Properties getProperties() { |
| return props; |
| } |
| |
| public String getJNDIName() { |
| return jndiName; |
| } |
| |
| public String getServer() { |
| return server; |
| } |
| |
| public int getHTTPPort() { |
| return port; |
| } |
| } |