In Restlet 2.3 what is the recommended way of obtaining an Application
?
The docs suggest there is a static method Application.getCurrent()
that implies that it is possible to obtain the executing Application
. However, this requires the call to be made from the executing Application
.
Say I had several applications and they are all running:
public class ApplicationA extends Application {...}
public class ApplicationB extends Application {...}
Is it possible to obtain Application
for ApplicationA
from ApplicationB
?