@Service(name="osgi") public class OSGiSniffer extends GenericSniffer
Modifier and Type | Field and Description |
---|---|
static String |
CONTAINER_NAME |
habitat, modulesRegistry
Constructor and Description |
---|
OSGiSniffer() |
Modifier and Type | Method and Description |
---|---|
String[] |
getContainersNames()
Returns the list of Containers that this Sniffer enables.
|
boolean |
handles(DeploymentContext context)
Returns true if the passed file or directory is recognized by this
composite sniffer.
|
boolean |
handles(ReadableArchive location)
Returns true if the passed file or directory is recognized by this
instance.
|
boolean |
isUserVisible() |
boolean |
supportsArchiveType(ArchiveType archiveType)
This API is used to help determine if the sniffer should recognize
the current archive.
|
equals, getAnnotationNames, getAnnotationTypes, getContainerModuleNames, getDeploymentConfigurationPaths, getDeploymentConfigurations, getIncompatibleSnifferTypes, getModuleType, getURLPatterns, hashCode, isJavaEE, setup, tearDown
public static final String CONTAINER_NAME
public boolean handles(ReadableArchive location)
GenericSniffer
handles
in interface Sniffer
handles
in class GenericSniffer
location
- the file or directory to explorepublic String[] getContainersNames()
Sniffer
public boolean isUserVisible()
isUserVisible
in interface Sniffer
isUserVisible
in class GenericSniffer
public boolean handles(DeploymentContext context)
GenericSniffer
handles
in interface Sniffer
handles
in class GenericSniffer
context
- deployment contextpublic boolean supportsArchiveType(ArchiveType archiveType)
archiveType
- the archive type to checkCopyright © 2018. All rights reserved.