List of usage examples for org.apache.shiro.util Assert notNull
public static void notNull(Object object, String message)
null . From source file:com.stormpath.shiro.servlet.filter.ShiroPrioritizedFilterChainResolver.java
License:Apache License
public ShiroPrioritizedFilterChainResolver(FilterChainResolver delegate, List<Filter> priorityFilters) { Assert.notNull(delegate, "Delegate FilterChainResolver cannot be null."); this.delegate = delegate; this.priorityFilters = priorityFilters; }
From source file:org.springframework.data.gemfire.function.execution.GemfireOnServerFunctionTemplate.java
License:Apache License
public GemfireOnServerFunctionTemplate(RegionService cache) { Assert.notNull(cache, "RegionService must not be null"); this.cache = cache; }
From source file:org.springframework.data.gemfire.function.execution.ServerFunctionExecution.java
License:Apache License
ServerFunctionExecution(RegionService regionService) {
Assert.notNull(regionService, "RegionService must not be null");
this.regionService = regionService;
}
From source file:org.springframework.geode.boot.actuate.GeodeDiskStoresHealthIndicator.java
License:Apache License
/** * Constructs an instance of the {@link GeodeDiskStoresHealthIndicator} initialized with a reference to * the {@link ApplicationContext} instance. * * @param applicationContext reference to the Spring {@link ApplicationContext}. * @throws IllegalArgumentException if {@link ApplicationContext} is {@literal null}. * @see org.springframework.context.ApplicationContext *//*from w ww.j a va2 s . co m*/ public GeodeDiskStoresHealthIndicator(ApplicationContext applicationContext) { super("Disk Stores health check enabled"); Assert.notNull(applicationContext, "ApplicationContext is required"); this.applicationContext = applicationContext; }
From source file:org.springframework.geode.boot.actuate.GeodeIndexesHealthIndicator.java
License:Apache License
/** * Constructs an instance of the {@link GeodeIndexesHealthIndicator} initialized with a reference to * the {@link ApplicationContext} instance. * * @param applicationContext reference to the Spring {@link ApplicationContext}. * @throws IllegalArgumentException if {@link ApplicationContext} is {@literal null}. * @see org.springframework.context.ApplicationContext *//*from w w w.j av a 2 s . c om*/ public GeodeIndexesHealthIndicator(ApplicationContext applicationContext) { super("Indexes health check enabled"); Assert.notNull(applicationContext, "ApplicationContext is required"); this.applicationContext = applicationContext; }
From source file:org.springframework.session.data.gemfire.expiration.repository.FixedDurationExpirationSessionRepository.java
License:Apache License
/** * Constructs a new instance of {@link FixedDurationExpirationSessionRepository} initialized with the given * data store specific {@link SessionRepository}. * * @param sessionRepository {@link SessionRepository} delegate. * @param expirationTimeout {@link Duration} specifying the length of time until the {@link Session} expires. * @throws IllegalArgumentException if {@link SessionRepository} is {@literal null}. * @see org.springframework.session.SessionRepository * @see java.time.Duration// w ww.j av a2s . co m */ public FixedDurationExpirationSessionRepository(@NonNull SessionRepository<S> sessionRepository, @Nullable Duration expirationTimeout) { Assert.notNull(sessionRepository, "SessionRepository is required"); this.delegate = sessionRepository; this.expirationTimeout = expirationTimeout; }