- All Known Implementing Classes:
DefaultBackendFactory
public interface BackendFactory
The backend factory.
- Author:
- harald
-
Method Summary
Modifier and TypeMethodDescriptionCreates a collection of all backends.
Skips backends marked as deprecated.getBackendByName(String name) Creates a backend by name.getBackendByUrl(String url) Creates a backend by jdbc url.getBackends(String backendNames) Creates a collection of backends via a comma-separated list of backend names.
There are some special names as well: all: all non-deprecated backends none: does not match any backend deprecated: all deprecated backends The returned list contains each backend only once.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, never null
- Throws:
BackendException- if no such backend
-
getBackendByName
Creates a backend by name.- Parameters:
name- the backend name- Returns:
- the backend, never null
- Throws:
BackendException- if no such backend
-
getAllBackends
Collection<Backend> getAllBackends()Creates a collection of all backends.
Skips backends marked as deprecated.- Returns:
- the collection of all backends
- Throws:
BackendException- if retrieving all configured backends failed- See Also:
-
getBackends
Creates a collection of backends via a comma-separated list of backend names.
There are some special names as well:- all: all non-deprecated backends
- none: does not match any backend
- deprecated: all deprecated backends
- Parameters:
backendNames- the backend names, null or empty if none- Returns:
- the backends found, empty if none
- Throws:
BackendException- if retrieving backends failed
-