Skip to content

Commit 1ec07fe

Browse files
authored
Clean up standalone module (#105)
1 parent 5429b1f commit 1ec07fe

File tree

10 files changed

+10
-211
lines changed

10 files changed

+10
-211
lines changed

standalone/api-src/org/labkey/api/standalone/SomeUtils.java renamed to demo/api-src/org/labkey/api/demo/SomeUtils.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
package org.labkey.api.standalone;
1+
package org.labkey.api.demo;
22

3+
/**
4+
* Simple example of a module providing an API that's available to dependent modules
5+
*/
36
public class SomeUtils
47
{
58
private Integer usefulCount = 0;

standalone/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ gradlePluginsVersion=1.36.0
66

77
# versions of artifacts required as dependencies
88
#uncomment the version number and set to the desired labkeyVersion
9-
#labkeyVersion=22.7-SNAPSHOT
9+
#labkeyVersion=22.11-SNAPSHOT
1010
labkeyClientApiVersion=4.0.0
1111

1212
# used by the LabKey Jsp Gradle plugin for declaring dependencies

standalone/resources/schemas/dbscripts/postgresql/standalone-16.30-17.10.sql

Lines changed: 0 additions & 19 deletions
This file was deleted.

standalone/resources/schemas/dbscripts/sqlserver/standalone-16.30-17.10.sql

Lines changed: 0 additions & 20 deletions
This file was deleted.

standalone/resources/schemas/standalone.xml

Lines changed: 0 additions & 20 deletions
This file was deleted.

standalone/src/org/labkey/standalone/StandaloneContainerListener.java

Lines changed: 0 additions & 55 deletions
This file was deleted.

standalone/src/org/labkey/standalone/StandaloneController.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,16 @@ public StandaloneController()
3737
}
3838

3939
@RequiresPermission(ReadPermission.class)
40-
public class BeginAction extends SimpleViewAction<Object>
40+
public static class BeginAction extends SimpleViewAction<Object>
4141
{
42-
public ModelAndView getView(Object o, BindException errors) throws Exception
42+
@Override
43+
public ModelAndView getView(Object o, BindException errors)
4344
{
4445
return new HtmlView(HtmlString.unsafe("Hello, and welcome to the standalone module."));
4546
}
4647

47-
public void addNavTrail(NavTree root)
48+
@Override
49+
public void addNavTrail(NavTree root)
4850
{
4951
}
5052
}

standalone/src/org/labkey/standalone/StandaloneManager.java

Lines changed: 0 additions & 32 deletions
This file was deleted.

standalone/src/org/labkey/standalone/StandaloneModule.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
package org.labkey.standalone;
1818

1919
import org.jetbrains.annotations.NotNull;
20-
import org.labkey.api.data.Container;
21-
import org.labkey.api.data.ContainerManager;
2220
import org.labkey.api.module.CodeOnlyModule;
2321
import org.labkey.api.module.ModuleContext;
2422
import org.labkey.api.view.WebPartFactory;
@@ -52,14 +50,5 @@ protected void init()
5250
@Override
5351
public void doStartup(ModuleContext moduleContext)
5452
{
55-
// add a container listener so we'll know when our container is deleted:
56-
ContainerManager.addContainerListener(new StandaloneContainerListener());
57-
}
58-
59-
@Override
60-
@NotNull
61-
public Collection<String> getSummary(Container c)
62-
{
63-
return Collections.emptyList();
6453
}
6554
}

standalone/src/org/labkey/standalone/StandaloneSchema.java

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)