Merge pull request #3683 from stianst/KEYCLOAK-4127

KEYCLOAK-4127
This commit is contained in:
Stian Thorgersen 2016-12-21 09:59:09 +01:00 committed by GitHub
commit b15918b745

View file

@ -23,11 +23,12 @@ import org.keycloak.models.KeycloakSession;
import org.keycloak.models.KeycloakSessionFactory; import org.keycloak.models.KeycloakSessionFactory;
import org.keycloak.models.cache.authorization.CachedStoreFactoryProvider; import org.keycloak.models.cache.authorization.CachedStoreFactoryProvider;
import org.keycloak.models.cache.authorization.CachedStoreProviderFactory; import org.keycloak.models.cache.authorization.CachedStoreProviderFactory;
import org.keycloak.provider.EnvironmentDependentProviderFactory;
/** /**
* @author <a href="mailto:psilva@redhat.com">Pedro Igor</a> * @author <a href="mailto:psilva@redhat.com">Pedro Igor</a>
*/ */
public class InfinispanStoreProviderFactory implements CachedStoreProviderFactory { public class InfinispanStoreProviderFactory implements CachedStoreProviderFactory, EnvironmentDependentProviderFactory {
@Override @Override
public CachedStoreFactoryProvider create(KeycloakSession session) { public CachedStoreFactoryProvider create(KeycloakSession session) {
return new InfinispanStoreFactoryProvider(session); return new InfinispanStoreFactoryProvider(session);
@ -52,4 +53,9 @@ public class InfinispanStoreProviderFactory implements CachedStoreProviderFactor
public String getId() { public String getId() {
return "infinispan-authz-store-factory"; return "infinispan-authz-store-factory";
} }
@Override
public boolean isSupported() {
return false;
}
} }