Make AbstractServletClient.getApplication() public
This commit is contained in:
parent
a56cdaee59
commit
44b4a1fe9c
3 changed files with 4 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue