站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

MetadataModelImplementation (Java EE Metadata) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.j2ee.metadata/0 1.3

org.netbeans.modules.j2ee.metadata.model.spi
Interface MetadataModelImplementation<T>


public interface MetadataModelImplementation<T>

The SPI for MetadataModel.

Since:
1.2
See Also:
MetadataModelFactory

Method Summary
 boolean isReady()
          Corresponds to MetadataModel.isReady().
<R> R
runReadAction(MetadataModelAction<T,R> action)
          Corresponds to MetadataModel.runReadAction(org.netbeans.modules.j2ee.metadata.model.api.MetadataModelAction).
<R> Future<R>
runReadActionWhenReady(MetadataModelAction<T,R> action)
          Corresponds to MetadataModel.runReadActionWhenReady(org.netbeans.modules.j2ee.metadata.model.api.MetadataModelAction).
 

Method Detail

runReadAction

<R> R runReadAction(MetadataModelAction<T,R> action)
                throws MetadataModelException,
                       IOException
Corresponds to MetadataModel.runReadAction(org.netbeans.modules.j2ee.metadata.model.api.MetadataModelAction).

Parameters:
action - the action to be executed; never null.
Returns:
the value returned by the action's MetadataModelAction.run(T) method.
Throws:
MetadataModelException - if the action's run() method threw a checked exception.
IOException - if an error occured while reading the model from its storage.

isReady

boolean isReady()
Corresponds to MetadataModel.isReady().

Returns:
true if the model is ready, false otherwise.

runReadActionWhenReady

<R> Future<R> runReadActionWhenReady(MetadataModelAction<T,R> action)
                                 throws MetadataModelException,
                                        IOException
Corresponds to MetadataModel.runReadActionWhenReady(org.netbeans.modules.j2ee.metadata.model.api.MetadataModelAction).

Parameters:
action - the action to be executed; never null.
Returns:
a Future encapsulating the value returned by the action's MetadataModelAction.run(T) method.
Throws:
MetadataModelException - if the action's run() method threw a checked exception.
IOException - if an error occured while reading the model from its storage.

org.netbeans.modules.j2ee.metadata/0 1.3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.