public interface MetadataModelImplementation<T>
MetadataModel
.MetadataModelFactory
Modifier and Type | Method and Description |
---|---|
boolean |
isReady()
Corresponds to
MetadataModel.isReady() . |
<R> R |
runReadAction(MetadataModelAction<T,R> action)
|
<R> Future<R> |
runReadActionWhenReady(MetadataModelAction<T,R> action)
|
<R> R runReadAction(MetadataModelAction<T,R> action) throws MetadataModelException, IOException
MetadataModel.runReadAction(org.netbeans.modules.j2ee.metadata.model.api.MetadataModelAction<T, R>)
.action
- the action to be executed; never null.MetadataModelAction.run(T)
method.MetadataModelException
- if the action's run()
method
threw a checked exception.IOException
- if an error occured while reading the model from its storage.boolean isReady()
MetadataModel.isReady()
.<R> Future<R> runReadActionWhenReady(MetadataModelAction<T,R> action) throws MetadataModelException, IOException
MetadataModel.runReadActionWhenReady(org.netbeans.modules.j2ee.metadata.model.api.MetadataModelAction<T, R>)
.action
- the action to be executed; never null.Future
encapsulating the value returned by the action's MetadataModelAction.run(T)
method.MetadataModelException
- if the action's run()
method
threw a checked exception.IOException
- if an error occured while reading the model from its storage.