public interface Attachable extends Adapter, Serializable
Configuration
attached
or detached.
Detaching an Attachable
from its configuration means, that the
underlying Connection
or DataSource
is removed. Attaching an
Attachable
to a new Configuration
means, that its
underlying Connection
or DataSource
will be
restored.
Detaching an Attachable
will NOT close the underlying
Connection
or DataSource
!
Attachables are also Serializable
. The underlying
Connection
or DataSource
is transient
.
Serialising an Attachable will always detach it first.
Modifier and Type | Method and Description |
---|---|
void |
attach(Configuration configuration)
Attach this object to a new
Configuration |
internalAPI
void attach(Configuration configuration)
Configuration
configuration
- A configuration or null
, if you wish to
detach this Attachable
from its previous
configuration.Copyright © 2013. All Rights Reserved.