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.settings;
016    
017    import java.lang.annotation.ElementType;
018    import java.lang.annotation.Retention;
019    import java.lang.annotation.RetentionPolicy;
020    import java.lang.annotation.Target;
021    
022    /**
023     * @author Raymond Aug??
024     * @author Jorge Ferrer
025     * @author Iv??n Zaera
026     */
027    public interface Settings {
028    
029            public ModifiableSettings getModifiableSettings();
030    
031            public Settings getParentSettings();
032    
033            public String getValue(String key, String defaultValue);
034    
035            public String[] getValues(String key, String[] defaultValue);
036    
037            @Retention(RetentionPolicy.RUNTIME)
038            @Target(ElementType.TYPE)
039            public @interface Config {
040    
041                    public String[] settingsIds();
042    
043            }
044    
045            @Retention(RetentionPolicy.RUNTIME)
046            @Target(ElementType.TYPE)
047            public @interface OverrideClass {
048    
049                    public Class<?> value() default Object.class;
050    
051            }
052    
053            @Retention(RetentionPolicy.RUNTIME)
054            @Target(ElementType.METHOD)
055            public @interface Property {
056    
057                    public boolean ignore() default false;
058    
059                    public String name() default "";
060    
061            }
062    
063    }