public class MetaData extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MetaData.OriginInfo |
Modifier and Type | Field and Description |
---|---|
protected Map<Resource,List<DiscoveredAnnotation>> |
_annotations |
protected List<DescriptorProcessor> |
_descriptorProcessors |
protected boolean |
_metaDataComplete |
protected List<Resource> |
_orderedContainerResources |
protected List<Resource> |
_orderedWebInfResources |
protected Ordering |
_ordering |
protected Map<String,MetaData.OriginInfo> |
_origins |
protected WebDescriptor |
_webDefaultsRoot |
protected Map<String,FragmentDescriptor> |
_webFragmentNameMap |
protected Map<Resource,FragmentDescriptor> |
_webFragmentResourceMap |
protected List<FragmentDescriptor> |
_webFragmentRoots |
protected List<Resource> |
_webInfClasses |
protected List<Resource> |
_webInfJars |
protected List<WebDescriptor> |
_webOverrideRoots |
protected WebDescriptor |
_webXmlRoot |
protected boolean |
allowDuplicateFragmentNames |
static Resource |
NON_FRAG_RESOURCE |
static String |
ORDERED_LIBS |
Constructor and Description |
---|
MetaData() |
public static final String ORDERED_LIBS
public static final Resource NON_FRAG_RESOURCE
protected Map<String,MetaData.OriginInfo> _origins
protected WebDescriptor _webDefaultsRoot
protected WebDescriptor _webXmlRoot
protected final List<WebDescriptor> _webOverrideRoots
protected boolean _metaDataComplete
protected final List<DescriptorProcessor> _descriptorProcessors
protected final List<FragmentDescriptor> _webFragmentRoots
protected final Map<String,FragmentDescriptor> _webFragmentNameMap
protected final Map<Resource,FragmentDescriptor> _webFragmentResourceMap
protected final Map<Resource,List<DiscoveredAnnotation>> _annotations
protected Ordering _ordering
protected boolean allowDuplicateFragmentNames
public void clear()
public void addFragment(Resource jarResource, Resource xmlResource) throws Exception
jarResource
- the jar the fragment is contained inxmlResource
- the resource representing the xml fileException
public void addDiscoveredAnnotations(List<DiscoveredAnnotation> annotations)
annotations
- public void addDiscoveredAnnotation(DiscoveredAnnotation annotation)
annotation
- public void addDescriptorProcessor(DescriptorProcessor p)
public void removeDescriptorProcessor(DescriptorProcessor p)
public void orderFragments()
public void resolve(WebAppContext context) throws Exception
Exception
public boolean isDistributable()
public WebDescriptor getWebXml()
public List<WebDescriptor> getOverrideWebs()
public WebDescriptor getWebDefault()
public List<FragmentDescriptor> getFragments()
public List<FragmentDescriptor> getOrderedFragments()
public Ordering getOrdering()
public void setOrdering(Ordering o)
public FragmentDescriptor getFragment(Resource jar)
public FragmentDescriptor getFragment(String name)
public Map<String,FragmentDescriptor> getNamedFragments()
public MetaData.OriginInfo getOriginInfo(String name)
public Descriptor getOriginDescriptor(String name)
public void setOrigin(String name, Descriptor d)
public void setOrigin(String name, Annotation annotation, Class<?> annotated)
public void setOriginAPI(String name)
public boolean isMetaDataComplete()
public void addWebInfJar(Resource newResource)
public void addContainerResource(Resource jar)
public boolean isAllowDuplicateFragmentNames()
public void setAllowDuplicateFragmentNames(boolean allowDuplicateFragmentNames)
public Map<String,MetaData.OriginInfo> getOrigins()
Copyright © 1995-2015 Webtide. All Rights Reserved.