Class SpringResourceProperties

java.lang.Object
org.apereo.cas.configuration.model.SpringResourceProperties
All Implemented Interfaces:
Serializable, CasFeatureModule
Direct Known Subclasses:
GroovyAcceptableUsagePolicyProperties, GroovyAccountManagementRegistrationProvisioningProperties, GroovyAdaptiveAuthenticationIPIntelligenceProperties, GroovyAuthenticationEngineProcessorProperties, GroovyAuthenticationExceptionsProperties, GroovyAuthenticationHandlerResolutionProperties, GroovyAuthenticationProperties, GroovyConsentProperties, GroovyInterruptProperties, GroovyMultifactorAuthenticationProviderBypassProperties, GroovyPasswordManagementProperties, GroovyPasswordPolicyProperties, GroovyPrincipalAttributesProperties, GroovyPrincipalTransformationProperties, GroovySmsProperties, GroovyWebflowLoginDecoratorProperties, GroovyWebflowProperties, GroovyWsFederationDelegationProperties, JsonConsentProperties, JsonGoogleAuthenticatorMultifactorProperties, JsonInterruptProperties, JsonPasswordManagementProperties, JsonPrincipalAttributesProperties, JsonQRAuthenticationProperties, JsonResourceAuthenticationProperties, JsonServiceRegistryProperties, JsonTrustedDevicesMultifactorProperties, OidcWebFingerProperties.Groovy, Pac4jDelegatedAuthenticationDiscoverySelectionJsonProperties, Pac4jDelegatedAuthenticationGroovyProvisioningProperties, PasswordlessAuthenticationGroovyAccountsProperties, PasswordlessAuthenticationJsonAccountsProperties, SurrogateGroovyAuthenticationProperties, SurrogateJsonAuthenticationProperties, WebAuthnJsonMultifactorProperties, YamlServiceRegistryProperties

@RequiresModule(name="cas-server-core-util", automated=true) public class SpringResourceProperties extends Object implements CasFeatureModule, Serializable
Since:
5.2.0
See Also:
  • Constructor Details

    • SpringResourceProperties

      public SpringResourceProperties()
  • Method Details

    • getLocation

      public org.springframework.core.io.Resource getLocation()
      The location of the resource. Resources can be URLs, or files found either on the classpath or outside somewhere in the file system.

      In the event the configured resource is a Groovy script, specially if the script set to reload on changes, you may need to adjust the total number of inotify instances. On Linux, you may need to add the following line to /etc/sysctl.conf: fs.inotify.max_user_instances = 256.

      You can check the current value via cat /proc/sys/fs/inotify/max_user_instances.

      In situations and scenarios where CAS is able to automatically watch the underlying resource for changes and detect updates and modifications dynamically, you may be able to specify the following setting as either an environment variable or system property with a value of false to disable the resource watcher: org.apereo.cas.util.io.PathWatcherService.

    • setLocation

      public SpringResourceProperties setLocation(org.springframework.core.io.Resource location)
      The location of the resource. Resources can be URLs, or files found either on the classpath or outside somewhere in the file system.

      In the event the configured resource is a Groovy script, specially if the script set to reload on changes, you may need to adjust the total number of inotify instances. On Linux, you may need to add the following line to /etc/sysctl.conf: fs.inotify.max_user_instances = 256.

      You can check the current value via cat /proc/sys/fs/inotify/max_user_instances.

      In situations and scenarios where CAS is able to automatically watch the underlying resource for changes and detect updates and modifications dynamically, you may be able to specify the following setting as either an environment variable or system property with a value of false to disable the resource watcher: org.apereo.cas.util.io.PathWatcherService.

      Returns:
      this.
    • toString

      public String toString()
      Overrides:
      toString in class Object