@ApplicationScoped public class PreferenceScopeValidatorImpl extends Object implements PreferenceScopeValidator
Modifier | Constructor and Description |
---|---|
protected |
PreferenceScopeValidatorImpl() |
|
PreferenceScopeValidatorImpl(PreferenceScopeTypes scopeTypes,
PreferenceScopeResolutionStrategy scopeResolutionStrategy) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isEmpty(String str) |
void |
validate(PreferenceScope scope)
Checks if a scope is valid.
|
protected PreferenceScopeValidatorImpl()
@Inject public PreferenceScopeValidatorImpl(PreferenceScopeTypes scopeTypes, PreferenceScopeResolutionStrategy scopeResolutionStrategy)
public void validate(PreferenceScope scope) throws InvalidPreferenceScopeException
PreferenceScopeValidator
validate
in interface PreferenceScopeValidator
scope
- Scope to check.InvalidPreferenceScopeException
- if the type passed is invalid, or if the scope's key
is null and a key is required for that type, or if the key is not null and the scope's type
does not require one.protected boolean isEmpty(String str)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.