Class AbstractRepositoryImplConfig
java.lang.Object
org.eclipse.rdf4j.repository.config.AbstractRepositoryImplConfig
- All Implemented Interfaces:
RepositoryImplConfig
- Direct Known Subclasses:
AbstractDelegatingRepositoryImplConfig
,FedXRepositoryConfig
,HTTPRepositoryConfig
,ProxyRepositoryConfig
,SailRepositoryConfig
,SPARQLRepositoryConfig
- Author:
- Herko ter Horst
-
Constructor Summary
ConstructorDescriptionCreate a new RepositoryConfigImpl.Create a new RepositoryConfigImpl. -
Method Summary
Modifier and TypeMethodDescriptionstatic RepositoryImplConfig
Utility method to create a newRepositoryImplConfig
by reading data from the suppliedModel
.Export thisRepositoryImplConfig
to its RDF representationgetType()
void
Reads the properties of thisRepositoryImplConfig
from the supplied Model and sets them accordingly.void
void
validate()
Validates this configuration.
-
Constructor Details
-
AbstractRepositoryImplConfig
public AbstractRepositoryImplConfig()Create a new RepositoryConfigImpl. -
AbstractRepositoryImplConfig
Create a new RepositoryConfigImpl.- Parameters:
type
-
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceRepositoryImplConfig
-
setType
-
validate
Description copied from interface:RepositoryImplConfig
Validates this configuration. ARepositoryConfigException
is thrown when the configuration is invalid. The exception should contain an error message that indicates why the configuration is invalid.- Specified by:
validate
in interfaceRepositoryImplConfig
- Throws:
RepositoryConfigException
- If the configuration is invalid.
-
export
Description copied from interface:RepositoryImplConfig
Export thisRepositoryImplConfig
to its RDF representation- Specified by:
export
in interfaceRepositoryImplConfig
- Parameters:
model
- aModel
object. After successful completion of this method this Model will contain the RDF representation of thisRepositoryImplConfig
.- Returns:
- the subject
Resource
that identifies thisRepositoryImplConfig
in the Model.
-
parse
Description copied from interface:RepositoryImplConfig
Reads the properties of thisRepositoryImplConfig
from the supplied Model and sets them accordingly.- Specified by:
parse
in interfaceRepositoryImplConfig
- Parameters:
model
- aModel
containing repository configuration data.resource
- the subjectResource
that identifies theRepositoryImplConfig
in the Model.- Throws:
RepositoryConfigException
- if the configuration data could not be read from the supplied Model.
-
create
public static RepositoryImplConfig create(Model model, Resource resource) throws RepositoryConfigException Utility method to create a newRepositoryImplConfig
by reading data from the suppliedModel
.- Parameters:
model
- theModel
to read configuration data from.resource
- the subjectResource
identifying the configuration data in the Model.- Returns:
- a new
RepositoryImplConfig
initialized with the configuration from the input Model, ornull
if noRepositoryConfigSchema.REPOSITORYTYPE
property was found in the configuration data.. - Throws:
RepositoryConfigException
- if an error occurred reading the configuration data from the model.
-