- All Known Implementing Classes:
DefaultBackendFactory
public interface BackendFactory
The backend factory.
- Author:
- harald
-
Method Summary
Modifier and TypeMethodDescriptionCreates all backends in classpath.getBackendByName(String name) Creates a backend by name.getBackendByUrl(String url) Creates a backend by jdbc url.static BackendFactoryThe singleton.
-
Method Details
-
getInstance
The singleton.- Returns:
- the singleton
-
getBackendByUrl
Creates a backend by jdbc url.- Parameters:
url- the connection url- Returns:
- the backend
- Throws:
BackendException- if no such backend
-
getBackendByName
Creates a backend by name.- Parameters:
name- the backend name- Returns:
- the backend
- Throws:
BackendException- if no such backend
-
getAllBackends
Collection<Backend> getAllBackends()Creates all backends in classpath.- Returns:
- the collection of all backends
- Throws:
BackendException- if retrieving all configured backends failed
-