Package org.glassfish.weld.connector
Class WeldCompositeSniffer
- java.lang.Object
-
- org.glassfish.internal.deployment.GenericSniffer
-
- org.glassfish.weld.connector.WeldSniffer
-
- org.glassfish.weld.connector.WeldCompositeSniffer
-
- All Implemented Interfaces:
Sniffer
@Service(name="weldCompositeSniffer") @Singleton public class WeldCompositeSniffer extends WeldSniffer
This sniffer determines if there are any beans.xml at the ear level.
-
-
Field Summary
-
Fields inherited from class org.glassfish.internal.deployment.GenericSniffer
habitat, modulesRegistry
-
-
Constructor Summary
Constructors Constructor Description WeldCompositeSniffer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
handles(DeploymentContext context)
Returns true if the archive contains beans.xml as defined by packaging rules of Weldboolean
supportsArchiveType(ArchiveType archiveType)
This API is used to help determine if the sniffer should recognize the current archive.-
Methods inherited from class org.glassfish.weld.connector.WeldSniffer
getAnnotationNames, getContainersNames, isArchiveCDIEnabled, isEntryPresent
-
Methods inherited from class org.glassfish.internal.deployment.GenericSniffer
equals, getAnnotationTypes, getContainerModuleNames, getDeploymentConfigurationPaths, getDeploymentConfigurations, getIncompatibleSnifferTypes, getModuleType, getURLPatterns, handles, hashCode, isJavaEE, isUserVisible, setup, tearDown
-
-
-
-
Method Detail
-
handles
public boolean handles(DeploymentContext context)
Description copied from class:WeldSniffer
Returns true if the archive contains beans.xml as defined by packaging rules of Weld- Specified by:
handles
in interfaceSniffer
- Overrides:
handles
in classWeldSniffer
- Parameters:
context
- deployment context- Returns:
- true if the location is recognized by this sniffer
-
supportsArchiveType
public boolean supportsArchiveType(ArchiveType archiveType)
This API is used to help determine if the sniffer should recognize the current archive. If the sniffer does not support the archive type associated with the current deployment, the sniffer should not recognize the archive.- Specified by:
supportsArchiveType
in interfaceSniffer
- Overrides:
supportsArchiveType
in classWeldSniffer
- Parameters:
archiveType
- the archive type to check- Returns:
- whether the sniffer supports the archive type
-
-