I tried to use the primitive model (as also mentioned
in http://issues.apache.org/jira/browse/HIVEMIND-120)
when creating a service with a Swing component
implementation called org.example.Main

Does anyone know a work-around that would allow
dependency injection on the org.example.Main? 

Using ObjectProviders like...

    <service-point id="MainCntrl"
interface="org.example.Controller">
        <invoke-factory model="singleton">
            <construct
class="org.example.DefaultController"
                initialize-method="afterPropertiesSet"
autowire-services="false"
                service-id-property="serviceId" >
               <set-object property="view"
value="instance:org.example.Main"/>
            </construct>
        </invoke-factory>
        <interceptor
service-id="hivemind.LoggingInterceptor"/>
    </service-point>

...does not help if you want org.example.Main to get a
reference to yet another service point. 

Thanks for the advice!


                
__________________________________ 
Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html

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

Reply via email to