Yes.

Regards
Raman

-----Original Message-----
From: Simon Laws [mailto:simonsl...@googlemail.com] 
Sent: Wednesday, 24 February 2010 3:13 PM
To: user@tuscany.apache.org
Subject: Re: singleton references in SCA service

So you have a component implementation like...

@Service(MyService.class)
class MyServiceImpl implements MyService {

    private MyExternalObject myExternalObject;

    public MyServiceImpl(){
        myExternalOject = new MyExternalObject();
    }

    public void myMethod (){
        ...
    }

    public MyExternalObject getMyExternalObject(){
        return myExternalObject;
    }
}

Just off the top of my head so can't say this actually compiles but is
this what you're getting at?

Simon

Reply via email to