You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2007/09/04 10:51:43 UTC
svn commit: r572584 -
/felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java
Author: cziegeler
Date: Tue Sep 4 01:51:42 2007
New Revision: 572584
URL: http://svn.apache.org/viewvc?rev=572584&view=rev
Log:
Do not generate methods if the component is abstract.
Modified:
felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java
Modified: felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java
URL: http://svn.apache.org/viewvc/felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java?rev=572584&r1=572583&r2=572584&view=diff
==============================================================================
--- felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java (original)
+++ felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java Tue Sep 4 01:51:42 2007
@@ -525,8 +525,8 @@
ref.setUnbind(unbindValue);
}
// if this is a field we look for the bind/unbind methods
- // and create them if they are not availabe
- if ( this.generateAccessors ) {
+ // and create them if they are not availabe and the component is not abstract
+ if ( !component.isAbstract() && this.generateAccessors ) {
if ( reference.getField() != null && component.getJavaClassDescription() instanceof ModifiableJavaClassDescription ) {
boolean createBind = false;
boolean createUnbind = false;