@Service(name="connector") @Singleton public class ConnectorSniffer extends GenericSniffer
habitat, modulesRegistry
Constructor and Description |
---|
ConnectorSniffer() |
Modifier and Type | Method and Description |
---|---|
Class<? extends Annotation>[] |
getAnnotationTypes()
Returns the list of annotations types that this sniffer is interested in.
|
String[] |
getContainersNames()
Returns the list of Containers that this Sniffer enables.
|
protected List<String> |
getDeploymentConfigurationPaths()
Returns the descriptor paths that might exist in a connector app.
|
String[] |
getIncompatibleSnifferTypes() |
String |
getModuleType()
Returns the Module type
|
boolean |
handles(DeploymentContext context)
Returns true if the passed file or directory is recognized by this
sniffer.
|
boolean |
isJavaEE() |
boolean |
isUserVisible() |
com.sun.enterprise.module.HK2Module[] |
setup(String containerHome,
Logger logger)
Sets up the container libraries so that any imported bundle from the
connector jar file will now be known to the module subsystem
|
boolean |
supportsArchiveType(ArchiveType archiveType)
This API is used to help determine if the sniffer should recognize
the current archive.
|
equals, getAnnotationNames, getContainerModuleNames, getDeploymentConfigurations, getURLPatterns, handles, hashCode, tearDown
public com.sun.enterprise.module.HK2Module[] setup(String containerHome, Logger logger) throws IOException
setup
in interface Sniffer
setup
in class GenericSniffer
containerHome
- is where the container implementation resideslogger
- the logger to useIOException
- exception if something goes sourpublic String[] getContainersNames()
public String getModuleType()
getModuleType
in interface Sniffer
getModuleType
in class GenericSniffer
public Class<? extends Annotation>[] getAnnotationTypes()
getAnnotationTypes
in interface Sniffer
getAnnotationTypes
in class GenericSniffer
public boolean isUserVisible()
isUserVisible
in interface Sniffer
isUserVisible
in class GenericSniffer
public boolean isJavaEE()
isJavaEE
in interface Sniffer
isJavaEE
in class GenericSniffer
public String[] getIncompatibleSnifferTypes()
getIncompatibleSnifferTypes
in interface Sniffer
getIncompatibleSnifferTypes
in class GenericSniffer
public boolean handles(DeploymentContext context)
handles
in interface Sniffer
handles
in class GenericSniffer
context
- deployment contextpublic boolean supportsArchiveType(ArchiveType archiveType)
archiveType
- the archive type to checkprotected List<String> getDeploymentConfigurationPaths()
getDeploymentConfigurationPaths
in class GenericSniffer
Copyright © 2020. All rights reserved.