ResourceProvider
@Deprecated public interface DynamicResourceProvider extends ResourceProvider
ResourceProviderFactory
.
A dynamic resource provider supports access to systems where the
connection to the system is dynamic and might go away (due to network
changes, updates etc.).
The isLive()
method can be called to check whether the
provider is still active.
The close()
method should be called to free any resources
held by this resource provider.ResourceProviderFactory.getResourceProvider(java.util.Map)
,
ResourceProviderFactory.getAdministrativeResourceProvider(java.util.Map)
OWNS_ROOTS, RESOURCE_TYPE_SYNTHETIC, ROOTS, SERVICE_NAME, USE_RESOURCE_ACCESS_SECURITY
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Close the resource provider.
|
boolean |
isLive()
Deprecated.
Returns
true if this resource provider has not been closed
yet and can still be used. |
getResource, getResource, listChildren
boolean isLive()
true
if this resource provider has not been closed
yet and can still be used.
This method will never throw an exception even after the resource provider has been closed
true
if the resource provider has not been closed
yet and is still active.. Once the resource provider has been closed
or is not active anymore, this method returns false
.void close()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"