org.infinispan.factories.AuthorizationManagerFactory Maven / Gradle / Ivy
package org.infinispan.factories;
import org.infinispan.factories.annotations.DefaultFactoryFor;
import org.infinispan.security.AuthorizationManager;
import org.infinispan.security.impl.AuthorizationManagerImpl;
@DefaultFactoryFor(classes = AuthorizationManager.class)
public class AuthorizationManagerFactory extends AbstractNamedCacheComponentFactory implements AutoInstantiableFactory {
@Override
@SuppressWarnings("unchecked")
public T construct(Class componentType) {
if (configuration.security().authorization().enabled())
return (T) new AuthorizationManagerImpl();
else
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy