Start structural port from Spring Boot to Undertow
This commit is contained in:
@@ -20,12 +20,9 @@
|
||||
|
||||
package io.kamax.mxisd.config.memory;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
public class MemoryIdentityConfig {
|
||||
|
||||
private String username;
|
||||
|
||||
@@ -20,17 +20,13 @@
|
||||
|
||||
package io.kamax.mxisd.config.memory;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Configuration
|
||||
@ConfigurationProperties("memory")
|
||||
public class MemoryStoreConfig {
|
||||
|
||||
private boolean enabled;
|
||||
private List<MemoryIdentityConfig> identities;
|
||||
private List<MemoryIdentityConfig> identities = new ArrayList<>();
|
||||
|
||||
public boolean isEnabled() {
|
||||
return enabled;
|
||||
@@ -48,4 +44,8 @@ public class MemoryStoreConfig {
|
||||
this.identities = identities;
|
||||
}
|
||||
|
||||
public void build() {
|
||||
// no-op
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -21,9 +21,7 @@
|
||||
package io.kamax.mxisd.config.memory;
|
||||
|
||||
import io.kamax.matrix._ThreePid;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class MemoryThreePid implements _ThreePid {
|
||||
|
||||
private String medium;
|
||||
|
||||
Reference in New Issue
Block a user