Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #11553 restore startWebapp #11554

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1220,14 +1220,14 @@ protected void startContext()
{
//resolve the metadata
_metadata.resolve(this);
super.startContext();
startWebapp();
}
}

@Override
protected void stopContext() throws Exception
{
super.stopContext();
stopWebapp();
try
{
for (int i = _configurations.size(); i-- > 0; )
Expand All @@ -1253,6 +1253,24 @@ protected void stopContext() throws Exception
}
}

/**
* Continue the {@link #startContext()} before calling {@code super.startContext()}.
* @throws Exception If there was a problem starting
*/
protected void startWebapp() throws Exception
{
super.startContext();
}

/**
* Continue the {@link #stopContext()} before calling {@code super.stopContext()}.
* @throws Exception If there was a problem stopping
*/
protected void stopWebapp() throws Exception
{
super.stopContext();
}

@Override
public Set<String> setServletSecurity(Dynamic registration, ServletSecurityElement servletSecurityElement)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1294,14 +1294,14 @@ protected void startContext()
{
//resolve the metadata
_metadata.resolve(this);
super.startContext();
startWebapp();
}
}

@Override
protected void stopContext() throws Exception
{
super.stopContext();
stopWebapp();
try
{
for (int i = _configurations.size(); i-- > 0; )
Expand All @@ -1327,6 +1327,24 @@ protected void stopContext() throws Exception
}
}

/**
* Continue the {@link #startContext()} before calling {@code super.startContext()}.
* @throws Exception If there was a problem starting
*/
protected void startWebapp() throws Exception
{
super.startContext();
}

/**
* Continue the {@link #stopContext()} before calling {@code super.stopContext()}.
* @throws Exception If there was a problem stopping
*/
protected void stopWebapp() throws Exception
{
super.stopContext();
}

@Override
public Set<String> setServletSecurity(Dynamic registration, ServletSecurityElement servletSecurityElement)
{
Expand Down
Loading