public class MetaData extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MetaData.OriginInfo |
| Modifier and Type | Field and Description |
|---|---|
static Resource |
NON_FRAG_RESOURCE |
static String |
ORDERED_LIBS |
static String |
VALIDATE_XML |
| Constructor and Description |
|---|
MetaData() |
public static final String VALIDATE_XML
public static final String ORDERED_LIBS
public static final Resource NON_FRAG_RESOURCE
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 - if unable to add fragmentpublic void addDiscoveredAnnotations(List<DiscoveredAnnotation> annotations)
annotations - the list of discovered annotations to addpublic void addDiscoveredAnnotation(DiscoveredAnnotation annotation)
annotation - the discovered annotationpublic void addDescriptorProcessor(DescriptorProcessor p)
public void removeDescriptorProcessor(DescriptorProcessor p)
public void orderFragments()
public void resolve(WebAppContext context) throws Exception
context - the context to resolve servlets / filters / listeners metadata fromException - if unable to resolve metadatapublic 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 boolean isValidateXml()
public void setValidateXml(boolean validateXml)
validateXml - the validateXml to setpublic Map<String,MetaData.OriginInfo> getOrigins()
Copyright © 2010 - 2020 Adobe. All Rights Reserved