public static class LegacyBatchContext.Initializer extends Object implements RuntimeResource
LegacyBatchContext
.RuntimeResource.DelegateRegisterer<D>
Constructor and Description |
---|
Initializer() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup(ResourceConfiguration configuration)
Finalizes this resource.
|
void |
setup(ResourceConfiguration configuration)
Initializes this resource.
|
public void setup(ResourceConfiguration configuration) throws IOException, InterruptedException
RuntimeResource
setup
in interface RuntimeResource
configuration
- the current configurationIOException
- if failed to initialize this resourceInterruptedException
- if interrupted while initializing this resourcepublic void cleanup(ResourceConfiguration configuration) throws IOException, InterruptedException
RuntimeResource
cleanup
in interface RuntimeResource
configuration
- the current configurationIOException
- if failed to finalizing this resourceInterruptedException
- if interrupted while finalizing this resourceCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.