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.deploy.hot;
016    
017    import com.liferay.portal.kernel.url.URLContainer;
018    
019    import java.util.ArrayList;
020    import java.util.List;
021    
022    /**
023     * @author Peter Fellwock
024     * @author Raymond Aug??
025     */
026    public class CustomJspBagImpl implements CustomJspBag {
027    
028            public CustomJspBagImpl(
029                    URLContainer urlContainer, String customJspDir,
030                    boolean customJspGlobal) {
031    
032                    _urlContainer = urlContainer;
033                    _customJspDir = customJspDir;
034                    _customJspGlobal = customJspGlobal;
035    
036                    _customJsps = new ArrayList<>();
037            }
038    
039            @Override
040            public String getCustomJspDir() {
041                    return _customJspDir;
042            }
043    
044            @Override
045            public List<String> getCustomJsps() {
046                    return _customJsps;
047            }
048    
049            @Override
050            public URLContainer getURLContainer() {
051                    return _urlContainer;
052            }
053    
054            @Override
055            public boolean isCustomJspGlobal() {
056                    return _customJspGlobal;
057            }
058    
059            private final String _customJspDir;
060            private final boolean _customJspGlobal;
061            private final List<String> _customJsps;
062            private final URLContainer _urlContainer;
063    
064    }