@Contract public abstract class MicroProfileSniffer extends Object implements Sniffer
| Constructor and Description |
|---|
MicroProfileSniffer() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAnnotationNames(DeploymentContext ctx)
Returns the list of annotation names that this sniffer is interested in.
|
protected abstract Class<?> |
getContainersClass() |
String[] |
getContainersNames()
Returns the list of Containers that this Sniffer enables.
|
Map<String,String> |
getDeploymentConfigurations(ReadableArchive archive)
Returns a map of deployment configurations for this Sniffer from the
specific archive source.
|
String[] |
getIncompatibleSnifferTypes() |
String[] |
getURLPatterns()
Returns the array of patterns to apply against the request URL
If the pattern matches the URL, the service method of the associated
container will be invoked
|
boolean |
handles(DeploymentContext context)
Returns true if the passed file or directory is recognized by this
sniffer.
|
boolean |
handles(ReadableArchive archive)
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
This method returns a
Modules for the module containing
the core implementation of the container. |
boolean |
supportsArchiveType(ArchiveType type)
This API is used to help determine if the sniffer should recognize
the current archive.
|
void |
tearDown()
Tears down a container, remove all imported libraries from the module
subsystem.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotationTypes, getModuleTypepublic boolean handles(DeploymentContext context)
Snifferprotected abstract Class<?> getContainersClass()
public final String[] getContainersNames()
SniffergetContainersNames in interface Snifferpublic boolean handles(ReadableArchive archive)
Snifferpublic final String[] getURLPatterns()
SniffergetURLPatterns in interface Snifferpublic final String[] getAnnotationNames(DeploymentContext ctx)
SniffergetAnnotationNames in interface Snifferctx - deployment contextpublic final com.sun.enterprise.module.HK2Module[] setup(String containerHome, Logger logger) throws IOException
SnifferModules for the module containing
the core implementation of the container. That means that this module
will be locked as long as there is at least one module loaded in the
associated container.setup in interface SniffercontainerHome - is where the container implementation resideslogger - the logger to useIOException - exception if something goes sourpublic final void tearDown()
Snifferpublic final boolean supportsArchiveType(ArchiveType type)
SniffersupportsArchiveType in interface Sniffertype - the archive type to checkpublic String[] getIncompatibleSnifferTypes()
getIncompatibleSnifferTypes in interface Snifferpublic final boolean isJavaEE()
public boolean isUserVisible()
isUserVisible in interface Snifferpublic Map<String,String> getDeploymentConfigurations(ReadableArchive archive) throws IOException
SnifferMany sniffers (esp. Java EE sniffers) will choose to set the key of each map entry to the relative path within the ReadableArchive of the deployment descriptor and the value of that map entry to the descriptor's contents.
getDeploymentConfigurations in interface Snifferarchive - the contents of the application's archiveIOException - in case of errors searching or reading the
archive for the deployment configuration(s)Copyright © 2021. All rights reserved.