@Service(name="weld") @Singleton public class WeldSniffer extends GenericSniffer
habitat, modulesRegistry
Constructor and Description |
---|
WeldSniffer() |
Modifier and Type | Method and Description |
---|---|
String[] |
getAnnotationNames(DeploymentContext context)
Returns the list of annotation names that this sniffer is interested in.
|
String[] |
getContainersNames()
Returns the list of Containers that this Sniffer enables.
|
boolean |
handles(DeploymentContext context)
Returns true if the archive contains beans.xml as defined by packaging rules of Weld
|
protected boolean |
isArchiveCDIEnabled(DeploymentContext context,
ReadableArchive archive,
String relativeBeansXmlPath) |
protected boolean |
isEntryPresent(ReadableArchive archive,
String entry) |
boolean |
supportsArchiveType(ArchiveType archiveType)
This API is used to help determine if the sniffer should recognize
the current archive.
|
equals, getAnnotationTypes, getContainerModuleNames, getDeploymentConfigurationPaths, getDeploymentConfigurations, getIncompatibleSnifferTypes, getModuleType, getURLPatterns, handles, hashCode, isJavaEE, isUserVisible, setup, tearDown
public boolean handles(DeploymentContext context)
handles
in interface Sniffer
handles
in class GenericSniffer
context
- deployment contextprotected boolean isEntryPresent(ReadableArchive archive, String entry)
protected boolean isArchiveCDIEnabled(DeploymentContext context, ReadableArchive archive, String relativeBeansXmlPath)
public String[] getContainersNames()
Sniffer
public boolean supportsArchiveType(ArchiveType archiveType)
archiveType
- the archive type to checkpublic String[] getAnnotationNames(DeploymentContext context)
GenericSniffer
getAnnotationNames
in interface Sniffer
getAnnotationNames
in class GenericSniffer
context
- deployment contextCopyright © 2019. All rights reserved.