1 /* 2 * Copyright 2012-2013 smartics, Kronseder & Reiner GmbH 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package de.smartics.properties.spi.config.support; 17 18 import javax.annotation.concurrent.ThreadSafe; 19 20 import de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement; 21 import de.smartics.properties.api.config.domain.PropertyProvider; 22 import de.smartics.properties.api.config.domain.key.ConfigurationKey; 23 import de.smartics.properties.api.core.domain.PropertyDescriptorRegistry; 24 import de.smartics.properties.api.core.security.PropertyValueSecurity; 25 import de.smartics.util.lang.NullArgumentException; 26 27 /** 28 * Abstract implementation of the 29 * {@link de.smartics.properties.api.config.domain.ConfigurationProperties} 30 * interface. 31 */ 32 @ThreadSafe 33 public abstract class AbstractExternalConfigurationPropertiesManagement extends 34 AbstractConfigurationPropertiesManagement implements 35 ConfigurationPropertiesManagement, ConfigurationPropertiesManagementSpi 36 { // NOPMD 37 // ********************************* Fields ********************************* 38 39 // --- constants ------------------------------------------------------------ 40 41 // --- members -------------------------------------------------------------- 42 43 // ****************************** Initializer ******************************* 44 45 // ****************************** Constructors ****************************** 46 47 /** 48 * Constructor for serializable subclasses. 49 */ 50 protected AbstractExternalConfigurationPropertiesManagement() 51 { 52 super(); 53 } 54 55 /** 56 * Default constructor. 57 * 58 * @param key the key that identifies the configuration. 59 * @param registry the registry to resolve property descriptors. 60 * @param decrypter the helper to decrypt secured property values. 61 * @throws NullArgumentException if {@code key}, {@code registry} or 62 * {@code decrypter} is <code>null</code>. 63 */ 64 protected AbstractExternalConfigurationPropertiesManagement( 65 final ConfigurationKey<?> key, final PropertyDescriptorRegistry registry, 66 final PropertyValueSecurity decrypter) throws NullArgumentException 67 { 68 super(key, registry, decrypter); 69 } 70 71 // ****************************** Inner Classes ***************************** 72 73 // ********************************* Methods ******************************** 74 75 // --- init ----------------------------------------------------------------- 76 77 // --- get&set -------------------------------------------------------------- 78 79 // --- business ------------------------------------------------------------- 80 81 @Override 82 protected final void addDefinitionsToStore(final PropertyProvider properties) 83 { 84 } 85 86 // --- object basics -------------------------------------------------------- 87 88 }