@Service(name="rar") @Singleton public class RarDetector extends Object implements ArchiveDetector
RAR_DETECTOR_RANK_PROP.
Default rank is DEFAULT_RAR_DETECTOR_RANK.| Modifier and Type | Field and Description |
|---|---|
static String |
ARCHIVE_TYPE |
static int |
DEFAULT_RAR_DETECTOR_RANK |
static String |
RAR_DETECTOR_RANK_PROP |
| Constructor and Description |
|---|
RarDetector() |
| Modifier and Type | Method and Description |
|---|---|
ArchiveHandler |
getArchiveHandler()
Return a ArchiveHandler that can handle the archive recognised by this ArchiveDetector.
|
ArchiveType |
getArchiveType()
Returns the type of the deployment unit or archive or module whichever way you want to call what's being
depoyed.
|
boolean |
handles(ReadableArchive archive)
This method is used to detect the archive type.
|
int |
rank()
Since archive detection logic is typically executed at a very early stage of deployment,
it is mainly heuristic.
|
public static final String RAR_DETECTOR_RANK_PROP
public static final int DEFAULT_RAR_DETECTOR_RANK
public static final String ARCHIVE_TYPE
public int rank()
ArchiveDetectorrank in interface ArchiveDetectorpublic ArchiveHandler getArchiveHandler()
ArchiveDetectorgetArchiveHandler in interface ArchiveDetectorpublic ArchiveType getArchiveType()
ArchiveDetectorArchiveType.getArchiveType in interface ArchiveDetectorpublic boolean handles(ReadableArchive archive) throws IOException
handles in interface ArchiveDetectorIOExceptionCopyright © 2019. All rights reserved.