Class Beans
java.lang.Object
org.apereo.cas.configuration.support.Beans
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getTempFilePath
(String prefix, String suffix) Gets temp file path.static boolean
isInfinitelyDurable
(String value) Is infinitely durable?static boolean
isNeverDurable
(String value) Is never durable?static Duration
newDuration
(String value) New duration.static org.apereo.services.persondir.IPersonAttributeDao
New attribute repository person attribute dao.static org.springframework.beans.factory.FactoryBean<ExecutorService>
New thread pool executor factory bean.
-
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
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
Is infinitely durable?- Parameters:
value
- the value- Returns:
- true/false
-
isNeverDurable
Is never durable?- Parameters:
value
- the value- Returns:
- true/false
-
getTempFilePath
Gets temp file path.- Parameters:
prefix
- the prefixsuffix
- the suffix- Returns:
- the temp file path
-