java.lang.Object
org.apereo.cas.configuration.support.Beans

public class Beans extends Object
A re-usable collection of utility methods for object instantiations and configurations used cross various @Bean creation methods throughout CAS server.
Since:
5.0.0
  • Constructor Details

    • Beans

      public Beans()
  • Method Details

    • newThreadPoolExecutorFactoryBean

      public static org.springframework.beans.factory.FactoryBean<ExecutorService> newThreadPoolExecutorFactoryBean(ConnectionPoolingProperties config)
      New thread pool executor factory bean.
      Parameters:
      config - the config
      Returns:
      the thread pool executor factory bean
    • newStubAttributeRepository

      public static org.apereo.services.persondir.IPersonAttributeDao newStubAttributeRepository(PrincipalAttributesProperties p)
      New attribute repository person attribute dao.
      Parameters:
      p - the properties
      Returns:
      the person attribute dao
    • newDuration

      public static Duration newDuration(String value)
      New duration. If the provided length is duration, it will be parsed accordingly, or if it's a numeric value it will be pared as a duration assuming it's provided as seconds.
      Parameters:
      value - the length in seconds.
      Returns:
      the duration
    • isInfinitelyDurable

      public static boolean isInfinitelyDurable(String value)
      Is infinitely durable?
      Parameters:
      value - the value
      Returns:
      true/false
    • isNeverDurable

      public static boolean isNeverDurable(String value)
      Is never durable?
      Parameters:
      value - the value
      Returns:
      true/false
    • getTempFilePath

      public static String getTempFilePath(String prefix, String suffix)
      Gets temp file path.
      Parameters:
      prefix - the prefix
      suffix - the suffix
      Returns:
      the temp file path