Make AbstractServletClient.getApplication() public

This commit is contained in:
hns 2009-09-07 13:30:45 +00:00
parent a56cdaee59
commit 44b4a1fe9c
3 changed files with 4 additions and 4 deletions

View file

@ -142,7 +142,7 @@ public abstract class AbstractServletClient extends HttpServlet {
*
* @return this servlet's application instance
*/
abstract Application getApplication();
public abstract Application getApplication();
/**
* Handle a request.

View file

@ -58,7 +58,7 @@ public final class EmbeddedServletClient extends AbstractServletClient {
*
* @return this servlet's application instance
*/
Application getApplication() {
public Application getApplication() {
if (app == null) {
app = Server.getServer().getApplication(appName);
}

View file

@ -133,7 +133,7 @@ public final class StandaloneServletClient extends AbstractServletClient {
*
* @return this servlet's application instance
*/
Application getApplication() {
public Application getApplication() {
if (app == null) {
createApp();
}
@ -145,7 +145,7 @@ public final class StandaloneServletClient extends AbstractServletClient {
* Create the application. Since we are synchronized only here, we
* do another check if the app already exists and immediately return if it does.
*/
synchronized void createApp() {
protected synchronized void createApp() {
if (app != null) {
return;