QPID-7610: [Java Broker] MemorySystemConfig should override the default preferenceStoreAttributes.
diff --git a/broker-core/src/main/java/org/apache/qpid/server/model/MemorySystemConfig.java b/broker-core/src/main/java/org/apache/qpid/server/model/MemorySystemConfig.java
new file mode 100644
index 0000000..a49862b
--- /dev/null
+++ b/broker-core/src/main/java/org/apache/qpid/server/model/MemorySystemConfig.java
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.apache.qpid.server.model;
+
+import org.apache.qpid.server.store.preferences.PreferenceStoreAttributes;
+
+public interface MemorySystemConfig<X extends MemorySystemConfig<X>> extends SystemConfig<X>
+{
+    @ManagedAttribute( description = "Configuration for the preference store, e.g. type, path, etc.",
+            defaultValue = "{\"type\": \"Noop\"}")
+    PreferenceStoreAttributes getPreferenceStoreAttributes();
+
+}
diff --git a/broker-plugins/memory-store/src/main/java/org/apache/qpid/server/store/MemorySystemConfigImpl.java b/broker-plugins/memory-store/src/main/java/org/apache/qpid/server/store/MemorySystemConfigImpl.java
index 27529f8..d9a1567 100644
--- a/broker-plugins/memory-store/src/main/java/org/apache/qpid/server/store/MemorySystemConfigImpl.java
+++ b/broker-plugins/memory-store/src/main/java/org/apache/qpid/server/store/MemorySystemConfigImpl.java
@@ -28,11 +28,12 @@
 import org.apache.qpid.server.model.AbstractSystemConfig;
 import org.apache.qpid.server.model.Broker;
 import org.apache.qpid.server.model.ManagedObject;
+import org.apache.qpid.server.model.MemorySystemConfig;
 import org.apache.qpid.server.model.SystemConfigFactoryConstructor;
 
 
 @ManagedObject( category = false, type = MemorySystemConfigImpl.SYSTEM_CONFIG_TYPE )
-public class MemorySystemConfigImpl extends AbstractSystemConfig<MemorySystemConfigImpl>
+public class MemorySystemConfigImpl extends AbstractSystemConfig<MemorySystemConfigImpl> implements MemorySystemConfig<MemorySystemConfigImpl>
 {
     public static final String SYSTEM_CONFIG_TYPE = "Memory";