@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()
ArchiveDetector
rank
in interface ArchiveDetector
public ArchiveHandler getArchiveHandler()
ArchiveDetector
getArchiveHandler
in interface ArchiveDetector
public ArchiveType getArchiveType()
ArchiveDetector
ArchiveType
.getArchiveType
in interface ArchiveDetector
public boolean handles(ReadableArchive archive) throws IOException
handles
in interface ArchiveDetector
IOException
Copyright © 2020. All rights reserved.