( vilmos.nagy | 2016. 01. 18., h – 20:13 )


private Resource res;

public void useResource(Resource res) {
    this.res = res;
}

public void anotherMethodCalledFromSomewhereElse() {
    res.use();
}

--
blogom