public class PropertiesResourceMapper extends Object implements ResourceMapper, ResourceAggregator, Initializable, Prioritizable
Constructor and Description |
---|
PropertiesResourceMapper() |
Modifier and Type | Method and Description |
---|---|
Set<ResourceKey> |
getAggregatedResources(ResourcePath resourcePath)
Returns a set of resources which can be found on common URL.
|
int |
getPriority()
Zero-relative priority.
|
void |
init()
Called during service initialization time
|
ResourceMapping |
mapResource(ResourceKey resourceKey)
Determines whether resource identified by given key is mapped to another resource.
|
void |
release()
Called when releasing associated services
|
public void init()
Initializable
init
in interface Initializable
public void release()
Initializable
release
in interface Initializable
public ResourceMapping mapResource(ResourceKey resourceKey)
ResourceMapper
mapResource
in interface ResourceMapper
resourceKey
- the key of the resource to be checked for existence of its mappingpublic Set<ResourceKey> getAggregatedResources(ResourcePath resourcePath)
ResourceAggregator
getAggregatedResources
in interface ResourceAggregator
resourcePath
- an absolute URL under which resource can be foundpublic int getPriority()
Prioritizable
Zero-relative priority.
The higher priority means that the service will be loaded sooner,
the lower priority means that the service will be loaded later.
By default, any service (even though it isn't Prioritizable has priority equal to 0.
getPriority
in interface Prioritizable
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.