Skip to content

Instantly share code, notes, and snippets.

View ralfbattenfeld's full-sized avatar

Ralf Battenfeld ralfbattenfeld

View GitHub Profile
@ralfbattenfeld
ralfbattenfeld / descriptor_API_flavors.txt
Created June 15, 2011 21:50
Discussion of two API flavors for the Shrinkwrap Descriptor project
Settings filters in a webapp descriptor
---------------------------------------
First Option using up() for jumping back to the parent node: Second option using type information
String desc = create(WebApp30Descriptor.class) String desc = create(WebAppDescriptor.class)
.filter() .filter(type(Filter.class)
.setFilterClass("org.dot.clazz") .name("name")
.setFilterName("name").up() .className("org.dot.clazz") )
.filterMapping() .filterMapping(type(FilterMapping.class)