001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.deploy.auto.context;
016    
017    import com.liferay.portal.kernel.plugin.PluginPackage;
018    
019    import java.io.File;
020    
021    /**
022     * @author Miguel Pastor
023     */
024    public class AutoDeploymentContext {
025    
026            public String getAppServerType() {
027                    return _appServerType;
028            }
029    
030            public String getContext() {
031                    return _context;
032            }
033    
034            public File getDeployDir() {
035                    return new File(_destDir, _context);
036            }
037    
038            public String getDestDir() {
039                    return _destDir;
040            }
041    
042            public File getFile() {
043                    return _file;
044            }
045    
046            public PluginPackage getPluginPackage() {
047                    return _pluginPackage;
048            }
049    
050            public void setAppServerType(String appServerType) {
051                    _appServerType = appServerType;
052            }
053    
054            public void setContext(String context) {
055                    _context = context;
056            }
057    
058            public void setDestDir(String destDir) {
059                    _destDir = destDir;
060            }
061    
062            public void setFile(File file) {
063                    _file = file;
064            }
065    
066            public void setPluginPackage(PluginPackage pluginPackage) {
067                    _pluginPackage = pluginPackage;
068            }
069    
070            private String _appServerType;
071            private String _context;
072            private String _destDir;
073            private File _file;
074            private PluginPackage _pluginPackage;
075    
076    }