org.glassfish.javaee.full.deployment
Class EarSniffer

java.lang.Object
  extended by org.glassfish.internal.deployment.GenericSniffer
      extended by org.glassfish.internal.deployment.GenericCompositeSniffer
          extended by org.glassfish.javaee.full.deployment.EarSniffer
All Implemented Interfaces:
CompositeSniffer, Sniffer

@Service(name="ear")
public class EarSniffer
extends GenericCompositeSniffer

Ear sniffers snifs ear files.

Author:
Jerome Dochez

Field Summary
 
Fields inherited from class org.glassfish.internal.deployment.GenericSniffer
modulesRegistry
 
Constructor Summary
EarSniffer()
           
 
Method Summary
 String[] getContainersNames()
           
protected  List<String> getDeploymentConfigurationPaths()
          Returns the descriptor paths that might exist at the root of the ear.
 boolean handles(ReadableArchive location, ClassLoader loader)
          Returns true if the passed file or directory is recognized by this instance.
 boolean isUserVisible()
           
 
Methods inherited from class org.glassfish.internal.deployment.GenericCompositeSniffer
handles
 
Methods inherited from class org.glassfish.internal.deployment.GenericSniffer
equals, getAnnotationTypes, getContainerModuleNames, getDeploymentConfigurations, getIncompatibleSnifferTypes, getModuleType, getURLPatterns, hashCode, setup, tearDown
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.api.container.Sniffer
getAnnotationTypes, getDeploymentConfigurations, getIncompatibleSnifferTypes, getModuleType, getURLPatterns, setup, tearDown
 

Constructor Detail

EarSniffer

public EarSniffer()
Method Detail

getContainersNames

public String[] getContainersNames()

handles

public boolean handles(ReadableArchive location,
                       ClassLoader loader)
Returns true if the passed file or directory is recognized by this instance.

Specified by:
handles in interface Sniffer
Overrides:
handles in class GenericSniffer
Parameters:
location - the file or directory to explore
loader - class loader for this application
Returns:
true if this sniffer handles this application type

isUserVisible

public boolean isUserVisible()
Specified by:
isUserVisible in interface Sniffer
Overrides:
isUserVisible in class GenericSniffer
Returns:
whether this sniffer should be visible to user

getDeploymentConfigurationPaths

protected List<String> getDeploymentConfigurationPaths()
Returns the descriptor paths that might exist at the root of the ear.

Overrides:
getDeploymentConfigurationPaths in class GenericSniffer
Returns:
list of the deployment descriptor paths


Copyright © 2012. All Rights Reserved.