You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2010/01/30 18:30:08 UTC
svn commit: r904820 -
/labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/beaninfo/AbstractAliasBeanInfo.java
Author: simonetripodi
Date: Sat Jan 30 17:30:07 2010
New Revision: 904820
URL: http://svn.apache.org/viewvc?rev=904820&view=rev
Log:
added support for default 'value' property
Modified:
labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/beaninfo/AbstractAliasBeanInfo.java
Modified: labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/beaninfo/AbstractAliasBeanInfo.java
URL: http://svn.apache.org/viewvc/labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/beaninfo/AbstractAliasBeanInfo.java?rev=904820&r1=904819&r2=904820&view=diff
==============================================================================
--- labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/beaninfo/AbstractAliasBeanInfo.java (original)
+++ labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/beaninfo/AbstractAliasBeanInfo.java Sat Jan 30 17:30:07 2010
@@ -33,6 +33,11 @@
public abstract class AbstractAliasBeanInfo extends SimpleBeanInfo {
/**
+ * The default property name that contains the alias.
+ */
+ private static final String VALUE = "value";
+
+ /**
* Maintains the original descriptors and the alias descriptor.
*/
private final List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>();
@@ -42,6 +47,17 @@
*
* @param klass the class is currently analyzed.
* @param annotationType the annotation type that contains the alias name.
+ */
+ public AbstractAliasBeanInfo(Class<?> klass,
+ Class<? extends Annotation> annotationType) {
+ this(klass, annotationType, VALUE);
+ }
+
+ /**
+ * Scans the class hierarchy and associates the property field to alias.
+ *
+ * @param klass the class is currently analyzed.
+ * @param annotationType the annotation type that contains the alias name.
* @param aliasPropertyName the annotation property name that contains the
* property alias.
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org