001 // Copyright 2005 The Apache Software Foundation 002 // 003 // Licensed under the Apache License, Version 2.0 (the "License"); 004 // you may not use this file except in compliance with the License. 005 // You may obtain a copy of the License at 006 // 007 // http://www.apache.org/licenses/LICENSE-2.0 008 // 009 // Unless required by applicable law or agreed to in writing, software 010 // distributed under the License is distributed on an "AS IS" BASIS, 011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 012 // See the License for the specific language governing permissions and 013 // limitations under the License. 014 015 package org.apache.tapestry.annotations; 016 017 import org.apache.tapestry.BaseComponent; 018 019 /** 020 * Used by {@link TestParameterAnnotationWorker}. 021 * 022 * @author Andreas Andreou 023 * @since 4.1.1 024 */ 025 public abstract class AnnotatedComponent extends BaseComponent 026 { 027 @Parameter 028 public abstract String getSimpleParameter(); 029 030 @Parameter(required = true) 031 public abstract String getRequiredParameter(); 032 033 @Parameter(cache = false) 034 public abstract Object getNonCachedParameter(); 035 036 @Parameter(aliases = "fred") 037 public abstract String getAliasedParameter(); 038 039 @Parameter 040 @Deprecated 041 public abstract int getDeprecatedParameter(); 042 043 @Parameter(name = "fred") 044 public abstract double getNamedParameter(); 045 046 @Parameter(defaultValue = "myDefault") 047 public abstract String getDefaultValue(); 048 }