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