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

org.infinispan.security.actions.GetSystemPropertyAsBooleanAction Maven / Gradle / Ivy

package org.infinispan.security.actions;

import java.security.PrivilegedAction;

/**
 * Wrapper for {@code Boolean.getBoolean(propertyName)}
 *
 * @author Dan Berindei
 * @since 8.2
 */
public class GetSystemPropertyAsBooleanAction implements PrivilegedAction {

   private final String propertyName;

   public GetSystemPropertyAsBooleanAction(String propertyName) {
      this.propertyName = propertyName;
   }

   @Override
   public Boolean run() {
      return Boolean.getBoolean(propertyName);
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy