@Service(name="ejb") @Singleton public class EjbJarDetector extends Object implements ArchiveDetector
EJB_JAR_DETECTOR_RANK_PROP.
Default rank is DEFAULT_EJB_JAR_DETECTOR_RANK.| Modifier and Type | Field and Description |
|---|---|
static String |
ARCHIVE_TYPE |
static int |
DEFAULT_EJB_JAR_DETECTOR_RANK |
static String |
EJB_JAR_DETECTOR_RANK_PROP |
| Constructor and Description |
|---|
EjbJarDetector() |
| 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 EJB_JAR_DETECTOR_RANK_PROP
public static final int DEFAULT_EJB_JAR_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 © 2019. All rights reserved.