diff --git a/README.md b/README.md index eb0cc3d8..934bd36d 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,14 @@ on how to do that, including how to develop and test locally and the versioning ## Release Notes +### 7.X.X +*Released*: TBD +(Earliest compatible LabKey version: 25.10) +- Remove `ContainerListener` from module template + ### 7.1.0 *Released*: 17 October 2025 -(Earliest compatible LabKeyversion: 25.10) +(Earliest compatible LabKey version: 25.10) - [Issue 53244](https://www.labkey.org/home/Developer/issues/issues-details.view?issueId=53244): Update `stopLabKey` task to work without Spring's shutdown endpoint - [Issue 53792](https://www.labkey.org/home/Developer/issues/issues-details.view?issueId=53792): Conditionally enable Java heap dumps in `StartLabKey` task - Fix output destination of `application.properties` for `DeployApp` task diff --git a/moduleTemplate/src/org/labkey/MODULE_DIR_NAME/MODULE_NAMEContainerListener.java b/moduleTemplate/src/org/labkey/MODULE_DIR_NAME/MODULE_NAMEContainerListener.java deleted file mode 100644 index 85acd2be..00000000 --- a/moduleTemplate/src/org/labkey/MODULE_DIR_NAME/MODULE_NAMEContainerListener.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) @@CURRENT_YEAR@@ LabKey Corporation - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.labkey.@@MODULE_LOWERCASE_NAME@@; - -import org.jetbrains.annotations.NotNull; -import org.labkey.api.data.Container; -import org.labkey.api.data.ContainerManager.ContainerListener; -import org.labkey.api.security.User; -import java.util.Collections; -import java.util.Collection; - -import java.beans.PropertyChangeEvent; - -public class @@MODULE_NAME@@ContainerListener implements ContainerListener -{ - @Override - public void containerCreated(Container c, User user) - { - } - - @Override - public void containerDeleted(Container c, User user) - { - } - - @Override - public void propertyChange(PropertyChangeEvent evt) - { - } - - @Override - public void containerMoved(Container c, Container oldParent, User user) - { - } - - @NotNull @Override - public Collection canMove(Container c, Container newParent, User user) - { - return Collections.emptyList(); - } -} \ No newline at end of file diff --git a/moduleTemplate/src/org/labkey/MODULE_DIR_NAME/MODULE_NAMEModule.java b/moduleTemplate/src/org/labkey/MODULE_DIR_NAME/MODULE_NAMEModule.java index 11527bc5..5dc15fc1 100644 --- a/moduleTemplate/src/org/labkey/MODULE_DIR_NAME/MODULE_NAMEModule.java +++ b/moduleTemplate/src/org/labkey/MODULE_DIR_NAME/MODULE_NAMEModule.java @@ -66,8 +66,6 @@ protected void init() @Override public void doStartup(ModuleContext moduleContext) { - // add a container listener so we'll know when our container is deleted: - ContainerManager.addContainerListener(new @@MODULE_NAME@@ContainerListener()); } @Override