You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by "Achim Hügen (JIRA)" <hi...@jakarta.apache.org> on 2005/08/10 17:13:35 UTC
[jira] Updated: (HIVEMIND-141) May extend element of to support create a ojbect by calling some service's method (probly with param?)
[ 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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org