felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clem...@apache.org
Subject svn commit: r723420 - /felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedService.java
Date Thu, 04 Dec 2008 20:06:01 GMT
Author: clement
Date: Thu Dec  4 12:06:01 2008
New Revision: 723420

URL: http://svn.apache.org/viewvc?rev=723420&view=rev
Log:
Begin the work about new creation policies.

Modified:
    felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedService.java

Modified: felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedService.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedService.java?rev=723420&r1=723419&r2=723420&view=diff
==============================================================================
--- felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedService.java
(original)
+++ felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedService.java
Thu Dec  4 12:06:01 2008
@@ -75,7 +75,7 @@
     private int m_factoryPolicy = SINGLETON_FACTORY;
 
     /**
-     * The service registration. is null when the service is not registred.
+     * The service registration. is null when the service is not registered.
      * m_serviceRegistration : ServiceRegistration
      */
     private ServiceRegistration m_serviceRegistration;
@@ -205,6 +205,9 @@
                 // In this case, we need to try to create a new pojo object, the factory
method will handle the creation.
                 svc = m_handler.getInstanceManager().createPojoObject();
                 break;
+            // Other policies:
+            // Thread : one service object per asking thread
+            // Consumer : one service object per consumer TODO how to shortcut the service
factory
             default:
                 List specs = Arrays.asList(m_serviceSpecification);
                 m_handler.error("[" + m_handler.getInstanceManager().getClassName() + "]
Unknown factory policy for " + specs + " : " + m_factoryPolicy);



Mime
View raw message