-
- All Known Implementing Classes:
DefaultBackendFactory
public interface BackendFactoryThe backend factory.- Author:
- harald
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<Backend>getAllBackends()Creates all backends in classpath.BackendgetBackendByName(java.lang.String name)Creates a backend by name.BackendgetBackendByUrl(java.lang.String url)Creates a backend by jdbc url.static BackendFactorygetInstance()The singleton.
-
-
-
Method Detail
-
getInstance
static BackendFactory getInstance()
The singleton.- Returns:
- the singleton
-
getBackendByUrl
Backend getBackendByUrl(java.lang.String url)
Creates a backend by jdbc url.- Parameters:
url- the connection url- Returns:
- the backend
- Throws:
BackendException- if no such backend
-
getBackendByName
Backend getBackendByName(java.lang.String name)
Creates a backend by name.- Parameters:
name- the backend name- Returns:
- the backend
- Throws:
BackendException- if no such backend
-
getAllBackends
java.util.Collection<Backend> getAllBackends()
Creates all backends in classpath.- Returns:
- the collection of all backends
- Throws:
BackendException- if retrieving all configured backends failed
-
-