[ http://issues.apache.org/jira/browse/HIVEMIND-141?page=all ]

Achim Hügen updated HIVEMIND-141:
---------------------------------

    Priority: Minor  (was: Major)

> May extend element  <set-object> of <invoke-factory> to support create a 
> ojbect by calling some service's method (probly with param?)
> -------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: HIVEMIND-141
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-141
>      Project: HiveMind
>         Type: New Feature
>   Components: framework
>     Versions: 1.1
>     Reporter: wu zhi hui
>     Priority: Minor

>
> If I want to create a service with some property coming frome another 
> service's method ,for example, serivceb.getOjbect(param), how can I do ?
>  I tried another way , first define a service that implement BeanFactory 
> which can provide defferent (or the same) object based on calling param 
> "locator", so I can use ObjectProvider to set this ojbect to another 
> service's property by " <set-object property="logger" 
> value="bean:MyLoggerFactory:name=AdderImplLogger"/> "
> but this is some complex ,if you can improve OjbectProvider ,let it complete 
> the following job ,I think it's great  for IOC container
> <set-ojbect property="logger" 
> value="bean-method:serviceB:method=createLogger(theName,theLevel)/>
> or 
>  <set-object property="logger" 
> value="bean-method:serviceB:method=createLogger">
>    <param name="logName">theName</param> 
> </set-oject>
> and define serviceB's service port (web-service ???) schema
> <service-schema service-id="serviceB">
>   <method name="createLogger">
>    <param name="logName">
>              <parse-rule   class="String" />
>    </param>
>  <param name="logLevel">
>              <parse-rule   class="Integer" />
>    </param>
> <param name="theDate">
>              <parse-rule   class="Date(yyyy-mm-dd)" />
>    </param>
> <param name="theDate">
>              <parse-rule   class="custom:usesDefined" />
>    </param>
>  </service-schema>
> ha ,ha ....,may be my thought is greate? ,may be hivemind can be the greatest 
> service (web service?)  oriented IOC container ?
>  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to