directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gokt...@apache.org
Subject svn commit: r1337886 - /directory/apacheds/branches/apacheds-osgi/hub/connectors/ipojo/handler/src/main/java/org/apache/directory/server/component/handler/ipojo/AbstractDCHandler.java
Date Sun, 13 May 2012 13:55:14 GMT
Author: gokturk
Date: Sun May 13 13:55:14 2012
New Revision: 1337886

URL: http://svn.apache.org/viewvc?rev=1337886&view=rev
Log:
* Added an ability to invoke setter even though reference is not changed

Modified:
    directory/apacheds/branches/apacheds-osgi/hub/connectors/ipojo/handler/src/main/java/org/apache/directory/server/component/handler/ipojo/AbstractDCHandler.java

Modified: directory/apacheds/branches/apacheds-osgi/hub/connectors/ipojo/handler/src/main/java/org/apache/directory/server/component/handler/ipojo/AbstractDCHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-osgi/hub/connectors/ipojo/handler/src/main/java/org/apache/directory/server/component/handler/ipojo/AbstractDCHandler.java?rev=1337886&r1=1337885&r2=1337886&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-osgi/hub/connectors/ipojo/handler/src/main/java/org/apache/directory/server/component/handler/ipojo/AbstractDCHandler.java
(original)
+++ directory/apacheds/branches/apacheds-osgi/hub/connectors/ipojo/handler/src/main/java/org/apache/directory/server/component/handler/ipojo/AbstractDCHandler.java
Sun May 13 13:55:14 2012
@@ -36,6 +36,7 @@ import org.apache.felix.ipojo.PrimitiveH
 import org.apache.felix.ipojo.annotations.Handler;
 import org.apache.felix.ipojo.architecture.ComponentTypeDescription;
 import org.apache.felix.ipojo.architecture.HandlerDescription;
+import org.apache.felix.ipojo.architecture.PropertyDescription;
 import org.apache.felix.ipojo.handlers.dependency.Dependency;
 import org.apache.felix.ipojo.handlers.dependency.DependencyHandler;
 import org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler;
@@ -204,8 +205,8 @@ public abstract class AbstractDCHandler 
 
             desc.addProperty( pd );
         }
-        
-        desc.addProperty( ComponentConstants.DC_NATURE_INDICATOR, "true", true );
+
+        desc.addProperty( new PropertyDescription( ComponentConstants.DC_NATURE_INDICATOR,
"string", "true", true ) );
 
         Properties constantProperties = extractConstantProperties( metadata );
         if ( constantProperties != null )
@@ -516,7 +517,8 @@ public abstract class AbstractDCHandler 
                         {
                             if ( getInstanceManager().getPojoObjects() != null )
                             {
-                                prop.invoke( null ); // Call on all created pojo objects.
+                                prop.reset();
+                                prop.invoke( getInstanceManager().getPojoObject() );
                             }
                         }
                     }



Mime
View raw message