Multiply floating store factories for type safety

This commit is contained in:
René Pfeuffer
2018-12-04 08:56:39 +01:00
parent 33f3216164
commit 3021bea65a
23 changed files with 245 additions and 87 deletions

View File

@@ -112,8 +112,8 @@ public class DefaultSecuritySystem implements SecuritySystem
public DefaultSecuritySystem(ConfigurationEntryStoreFactory storeFactory)
{
store = storeFactory
.withName(NAME)
.withType(AssignedPermission.class)
.withName(NAME)
.build();
readAvailablePermissions();
}

View File

@@ -91,8 +91,8 @@ public class SecureKeyResolver extends SigningKeyResolverAdapter
public SecureKeyResolver(ConfigurationEntryStoreFactory storeFactory)
{
store = storeFactory
.withName(STORE_NAME)
.withType(SecureKey.class)
.withName(STORE_NAME)
.build();
}