@Service(value=BackendFactory.class) public class DefaultBackendFactory extends Object implements BackendFactory
| Constructor and Description |
|---|
DefaultBackendFactory()
Creates a backend factory.
Collects all Backend services. |
| Modifier and Type | Method and Description |
|---|---|
Collection<Backend> |
getAllBackends()
Creates all backends in classpath.
|
Backend |
getBackendByName(String name)
Creates a backend by name.
|
Backend |
getBackendByUrl(String url)
Creates a backend by jdbc url.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstancepublic DefaultBackendFactory()
public Backend getBackendByUrl(String url)
BackendFactorygetBackendByUrl in interface BackendFactoryurl - the connection urlpublic Backend getBackendByName(String name) throws BackendException
BackendFactorygetBackendByName in interface BackendFactoryname - the backend nameBackendException - if no such backendpublic Collection<Backend> getAllBackends() throws BackendException
BackendFactorygetAllBackends in interface BackendFactoryBackendException - if retrieving all configured backends failedTentackle - a domain driven enterprise framework