First: service delegation works fine:

Application Universe {
    basePackage=org.helloworld

    Module milkyway {

        Service MoonService {
            String sayHello(String moonName);
        }

        Service PlanetService {
            sayHello => MoonService.sayHello;
        }
    }
}

produces 
        <bean
                class="org.helloworld.milkyway.serviceimpl.PlanetServiceImpl"
id="planetService">
                <property name="moonService">
                        <ref bean="moonService" />
                </property>
        </bean>

and a variable, setter and getter in PlanetServiceImpl

The one question I have is, why does it have to be 
            sayHello => MoonService.sayHello;
instead of 
            sayHello => @MoonService.sayHello;
?


Second: Service injection into service doesn't produce code:

Application Universe {
    basePackage=org.helloworld

    Module milkyway {

        Service MoonService {
            String sayHello(String moonName);
        }

        Service PlanetService {
            > @MoonService
        }
    }
}

produces
        <bean
                class="org.helloworld.milkyway.serviceimpl.PlanetServiceImpl"
id="planetService">
        </bean>

and no variable, setter and getter in PlanetServiceImpl

-- 
View this message in context: 
http://www.nabble.com/Service-injection-into-service-tp15739370s17564p15739370.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to