public class ResourceBackedMetadataResolver extends AbstractReloadingMetadataResolver
Resource
.AbstractBatchMetadataResolver.BatchEntityBackingStore
AbstractMetadataResolver.EntityBackingStore
Constructor and Description |
---|
ResourceBackedMetadataResolver(Resource resource)
Constructor.
|
ResourceBackedMetadataResolver(Timer timer,
Resource resource)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doDestroy()
Performs component specific destruction logic.
|
protected byte[] |
fetchMetadata()
Fetches metadata from a source.
|
protected String |
getMetadataIdentifier()
Gets an identifier which may be used to distinguish this metadata in logging statements.
|
computeNextRefreshDelay, getExpirationTime, getLastRefresh, getLastUpdate, getMaxRefreshDelay, getMinRefreshDelay, getNextRefresh, getRefreshDelayFactor, initMetadataResolver, inputstreamToByteArray, postProcessMetadata, processCachedMetadata, processNewMetadata, processNonExpiredMetadata, processPreExpiredMetadata, refresh, setCacheSourceMetadata, setMaxRefreshDelay, setMinRefreshDelay, setRefreshDelayFactor, unmarshallMetadata
createNewBackingStore, getBackingStore, getCachedFilteredMetadata, getCachedOriginalMetadata, isCacheSourceMetadata, iterator, preProcessNewMetadata, resolve
doInitialize, filterMetadata, getMetadataFilter, getParserPool, getUnmarshallerFactory, indexEntityDescriptor, isFailFastInitialization, isRequireValidMetadata, isValid, lookupEntityID, lookupIndexedEntityID, preProcessEntitiesDescriptor, preProcessEntityDescriptor, releaseMetadataDOM, removeByEntityID, resolveSingle, setBackingStore, setFailFastInitialization, setMetadataFilter, setParserPool, setRequireValidMetadata, unmarshallMetadata
setId
getId
destroy, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetadataFilter, isRequireValidMetadata, setMetadataFilter, setRequireValidMetadata
resolve, resolveSingle
getId
forEach, spliterator
public ResourceBackedMetadataResolver(Timer timer, Resource resource) throws IOException
resource
- resource from which to read the metadata file.timer
- task timer used to schedule metadata refresh tasksIOException
- thrown if there is a problem retrieving information about the resourcepublic ResourceBackedMetadataResolver(Resource resource) throws IOException
resource
- resource from which to read the metadata file.IOException
- thrown if there is a problem retrieving information about the resourceprotected void doDestroy()
doDestroy
in class AbstractReloadingMetadataResolver
protected String getMetadataIdentifier()
getMetadataIdentifier
in class AbstractReloadingMetadataResolver
protected byte[] fetchMetadata() throws ResolverException
fetchMetadata
in class AbstractReloadingMetadataResolver
ResolverException
- thrown if there is a problem fetching the metadataCopyright © 2016 JBoss by Red Hat. All rights reserved.