|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.resourceresolver.impl.helper.SortedProviderList<T>
public class SortedProviderList<T>
Helper class to get a sorted list of resource providers which implement a specific feature interface.
| Nested Class Summary | |
|---|---|
static interface |
SortedProviderList.Filter<T>
|
| Constructor Summary | |
|---|---|
SortedProviderList(Class<T> genericClass)
We need the class to do the instanceof test for providers returned by the factory. |
|
| Method Summary | |
|---|---|
void |
add(ResourceProviderFactoryHandler factory)
Add a resource provider factory. |
void |
add(ResourceProviderHandler rpHandler)
Add a resource provider This first checks if it implements the feature interface. |
ProviderHandler |
getProviderHandler(ResourceResolverContext ctx,
org.apache.sling.api.resource.ResourceProvider resourceProvider)
returns the ProviderHandler for a specific resource provider |
Iterator<T> |
getProviders(ResourceResolverContext ctx,
SortedProviderList.Filter<T> filter)
Return an iterator for the current sorted list of providers implementing the feature interface. |
void |
remove(ResourceProviderFactoryHandler factory)
Remove a resource provider factory. |
void |
remove(ResourceProviderHandler rpHandler)
Remove a resource provider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SortedProviderList(Class<T> genericClass)
| Method Detail |
|---|
public Iterator<T> getProviders(ResourceResolverContext ctx,
SortedProviderList.Filter<T> filter)
public void add(ResourceProviderHandler rpHandler)
public void add(ResourceProviderFactoryHandler factory)
public void remove(ResourceProviderHandler rpHandler)
public void remove(ResourceProviderFactoryHandler factory)
public ProviderHandler getProviderHandler(ResourceResolverContext ctx,
org.apache.sling.api.resource.ResourceProvider resourceProvider)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||