@Service(name="war") @Singleton public class WarDetector extends Object implements ArchiveDetector
WAR_DETECTOR_RANK_PROP.
Default rank is DEFAULT_WAR_DETECTOR_RANK.| Modifier and Type | Field and Description |
|---|---|
static String |
ARCHIVE_TYPE |
static int |
DEFAULT_WAR_DETECTOR_RANK |
static String |
WAR_DETECTOR_RANK_PROP |
| Constructor and Description |
|---|
WarDetector() |
| 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 WAR_DETECTOR_RANK_PROP
public static final int DEFAULT_WAR_DETECTOR_RANK
public static final String ARCHIVE_TYPE
public int rank()
ArchiveDetectorrank in interface ArchiveDetectorpublic boolean handles(ReadableArchive archive)
ArchiveDetectorhandles in interface ArchiveDetectorpublic ArchiveHandler getArchiveHandler()
ArchiveDetectorgetArchiveHandler in interface ArchiveDetectorpublic ArchiveType getArchiveType()
ArchiveDetectorArchiveType.getArchiveType in interface ArchiveDetectorCopyright © 2017. All rights reserved.