public class SpiVerifyRuleProvider extends Object implements VerifyRuleProvider
VerifyRuleProvider as services.| Constructor and Description |
|---|
SpiVerifyRuleProvider(ClassLoader serviceClassLoader)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T> VerifyRule |
get(DataModelDefinition<T> definition,
VerifyContext context,
URI source)
Creates a
VerifyRule object from the specified source. |
public SpiVerifyRuleProvider(ClassLoader serviceClassLoader)
serviceClassLoader - the class loader to load the registered servicesIllegalArgumentException - if some parameters were nullpublic <T> VerifyRule get(DataModelDefinition<T> definition, VerifyContext context, URI source) throws IOException
VerifyRuleProviderVerifyRule object from the specified source.
If this object does not support the URI,
this method will return null.
get in interface VerifyRuleProviderT - type of data modeldefinition - the data model definitioncontext - current verification contextsource - the target identifierVerifyRule,
or null if the specified source is not valid for this objectIOException - if failed to load a VerifyRule from the sourceCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.