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