Package org.xwiki.xar
Interface XarEntryTypeResolver
-
@Role public interface XarEntryTypeResolver
Resolve properXarEntryType
instance depending on the name and the context.- Since:
- 10.3
- Version:
- $Id: cba4ce4b384c32cfb8a1d64451d0887b26613fd6 $
-
-
Field Summary
Fields Modifier and Type Field Description static String
DOCUMENT_PREFIX
The prefix used for the hints of components specific to the entry reference.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XarEntryType
getDefault()
XarEntryType
resolve(XarEntry entry, boolean fallbackOnDefault)
-
-
-
Field Detail
-
DOCUMENT_PREFIX
static final String DOCUMENT_PREFIX
The prefix used for the hints of components specific to the entry reference.- See Also:
- Constant Field Values
-
-
Method Detail
-
resolve
XarEntryType resolve(XarEntry entry, boolean fallbackOnDefault)
- Parameters:
entry
- the XAR entryfallbackOnDefault
- if true, return the defaultXarEntryType
if no specific component can be found- Returns:
- the
XarEntryType
instance
-
getDefault
XarEntryType getDefault()
- Returns:
- the default
XarEntryType
instance
-
-