org.glassfish.ejb
Class EjbSniffer
java.lang.Object
org.glassfish.internal.deployment.GenericSniffer
org.glassfish.ejb.EjbSniffer
- All Implemented Interfaces:
- Sniffer
@Service(name="Ejb")
@Scoped(value=org.jvnet.hk2.component.Singleton.class)
public class EjbSniffer
- extends GenericSniffer
Implementation of the Sniffer for the Ejb container.
- Author:
- Mahesh Kannan
EjbSniffer
public EjbSniffer()
EjbSniffer
public EjbSniffer(String containerName,
String appStigma,
String urlPattern)
getContainersNames
public String[] getContainersNames()
setup
public com.sun.enterprise.module.Module[] setup(String containerHome,
Logger logger)
throws IOException
- Specified by:
setup in interface Sniffer- Overrides:
setup in class GenericSniffer
- Throws:
IOException
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 exploreloader - class loader for this application
- Returns:
- true if this sniffer handles this application type
getAnnotationTypes
public Class<? extends Annotation>[] getAnnotationTypes()
- Specified by:
getAnnotationTypes in interface Sniffer- Overrides:
getAnnotationTypes in class GenericSniffer
isUserVisible
public boolean isUserVisible()
- Specified by:
isUserVisible in interface Sniffer- Overrides:
isUserVisible in class GenericSniffer
- Returns:
- whether this sniffer should be visible to user
getIncompatibleSnifferTypes
public String[] getIncompatibleSnifferTypes()
- Specified by:
getIncompatibleSnifferTypes in interface Sniffer- Overrides:
getIncompatibleSnifferTypes in class GenericSniffer
- Returns:
- the set of the sniffers that should not co-exist for the
same module. For example, ejb and connector sniffers should not
be returned in the sniffer list for a certain module.
This method will be used to validate and filter the retrieved sniffer
lists for a certain module
getDeploymentConfigurationPaths
protected List<String> getDeploymentConfigurationPaths()
- Returns the descriptor paths that might exist at an ejb app.
- Overrides:
getDeploymentConfigurationPaths in class GenericSniffer
- Returns:
- list of the deployment descriptor paths
Copyright © 2012 GlassFish Community. All Rights Reserved.