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.tutorial.propertyset; 17 18 import de.smartics.properties.api.core.annotations.PropertySet; 19 20 /** 21 * <p> 22 * A virtual property set is a property set that is given an name but is never 23 * registered. Only property sets that are declared at type level are 24 * registered. 25 * </p> 26 * <p> 27 * The following example shows a property set that contains a property of a 28 * virtual property set. 29 * </p> 30 */ 31 @PropertySet("some.name") 32 public interface VirtualPropertySet 33 { 34 /** 35 * This property is part of the virtual property set <code>other.set</code>, 36 * since this property set is never declared at type level. 37 */ 38 @PropertySet("other.set") 39 void element(); 40 }