Skip to content

Commit 72db512

Browse files
committed
fixes #153: Remove unused static instance of RESTServicePlugin
The instance is unused, but isn't cleaned up with the lifecycle of the plugin. This can prevent the plugin's class loader from being completely destroyed when the plugin is unloaded/reloaded.
1 parent 45b7315 commit 72db512

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/java/org/jivesoftware/openfire/plugin/rest/RESTServicePlugin.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
* The Class RESTServicePlugin.
3535
*/
3636
public class RESTServicePlugin implements Plugin, PropertyEventListener {
37-
38-
/** The Constant INSTANCE. */
39-
public static final RESTServicePlugin INSTANCE = new RESTServicePlugin();
4037

4138
private static final String CUSTOM_AUTH_FILTER_PROPERTY_NAME = "plugin.restapi.customAuthFilter";
4239
public static final String SERVICE_LOGGING_ENABLED = "plugin.restapi.serviceLoggingEnabled";
@@ -67,16 +64,6 @@ public void setServiceLoggingEnabled(boolean serviceLoggingEnabled) {
6764
/** The custom authentication filter */
6865
private String customAuthFilterClassName;
6966

70-
71-
/**
72-
* Gets the single instance of RESTServicePlugin.
73-
*
74-
* @return single instance of RESTServicePlugin
75-
*/
76-
public static RESTServicePlugin getInstance() {
77-
return INSTANCE;
78-
}
79-
8067
/* (non-Javadoc)
8168
* @see org.jivesoftware.openfire.container.Plugin#initializePlugin(org.jivesoftware.openfire.container.PluginManager, java.io.File)
8269
*/

0 commit comments

Comments
 (0)