public interface RuntimeResource
| Modifier and Type | Interface and Description |
|---|---|
static class |
RuntimeResource.DelegateRegisterer<D>
A skeletal implementation of registering/unregistering resource delegation objects.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
cleanup(ResourceConfiguration configuration)
Finalizes this resource.
|
default void |
setup(ResourceConfiguration configuration)
Initializes this resource.
|
default void setup(ResourceConfiguration configuration) throws IOException, InterruptedException
configuration - the current configurationIOException - if failed to initialize this resourceInterruptedException - if interrupted while initializing this resourceIllegalArgumentException - if configuration is not validIllegalStateException - if resource lifecycle has something wrongdefault void cleanup(ResourceConfiguration configuration) throws IOException, InterruptedException
configuration - the current configurationIOException - if failed to finalizing this resourceInterruptedException - if interrupted while finalizing this resourceIllegalArgumentException - if configuration is not validIllegalStateException - if resource lifecycle has something wrongCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.