added module to register servlets and filters by new WebElement annotation

This commit is contained in:
Sebastian Sdorra
2015-02-01 19:14:46 +01:00
parent 7877db00c9
commit 79e1e5e972
12 changed files with 785 additions and 2 deletions

View File

@@ -113,6 +113,20 @@ public class DefaultExtensionProcessor implements ExtensionProcessor
logger.info("bound extensions in {}", sw.stop());
}
//~--- get methods ----------------------------------------------------------
/**
* Method description
*
*
* @return
*/
@Override
public Iterable<WebElementDescriptor> getWebElements()
{
return collector.getWebElements();
}
//~--- fields ---------------------------------------------------------------
/** Field description */

View File

@@ -205,6 +205,17 @@ public final class ExtensionCollector
return restResources;
}
/**
* Method description
*
*
* @return
*/
public Set<WebElementDescriptor> getWebElements()
{
return webElements;
}
//~--- methods --------------------------------------------------------------
/**
@@ -263,18 +274,22 @@ public final class ExtensionCollector
restProviders.addAll(Lists.newArrayList(module.getRestProviders()));
restResources.addAll(Lists.newArrayList(module.getRestResources()));
Iterables.addAll(webElements, module.getWebElements());
}
//~--- fields ---------------------------------------------------------------
/** Field description */
private final Set<Class> looseExtensions = Sets.newHashSet();
private final Set<WebElementDescriptor> webElements = Sets.newHashSet();
/** Field description */
private final Set<Class> restResources = Sets.newHashSet();
/** Field description */
private final Set<Class> restProviders = Sets.newHashSet();
/** Field description */
private final Set<Class> restResources = Sets.newHashSet();
private final Set<Class> looseExtensions = Sets.newHashSet();
/** Field description */
private final Multimap<ExtensionPointElement, Class> extensions =