All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.factories.AuthorizationManagerFactory Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
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