Package cz.cvut.kbss.ontodriver
Interface Wrapper
- All Known Subinterfaces:
Connection
,Rdf4jConnectionProvider
,RepoConnection
,StorageConnector
- All Known Implementing Classes:
ChangeTrackingStorageConnector
,GraphDBStorageConnection
,JenaAdapter
,JenaConnection
,OwlapiConnection
,Rdf4jAdapter
,Rdf4jConnection
,RemoteRepositoryWrapper
,SharedStorageConnector
,SnapshotStorageConnector
,StorageConnection
,StorageConnector
,VirtuosoStorageConnector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface for retrieving concrete implementations of the OntoDriver API and/or classes the implementations use (e.g.
classes of the underlying storage framework).
-
Method Summary
-
Method Details
-
unwrap
Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy. If the receiver implements the interface then the result is the receiver or a proxy for the receiver. If the receiver is a wrapper and the wrapped object implements the interface then the result is the wrapped object or a proxy for the wrapped object. Otherwise return the the result of calling unwrap recursively on the wrapped object or a proxy for that result. If the receiver is not a wrapper and does not implement the interface, then anOntoDriverException
is thrown.- Type Parameters:
T
- The type of the class modeled by this Class object- Parameters:
cls
- The type of the required result- Returns:
- An object implementing the interface
- Throws:
OntoDriverException
- If no matching object is found
-