org.glassfish.ejb
Class EjbSniffer

java.lang.Object
  extended by org.glassfish.internal.deployment.GenericSniffer
      extended by 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

Field Summary
 
Fields inherited from class org.glassfish.internal.deployment.GenericSniffer
modulesRegistry
 
Constructor Summary
EjbSniffer()
           
EjbSniffer(java.lang.String containerName, java.lang.String appStigma, java.lang.String urlPattern)
           
 
Method Summary
 java.lang.Class<? extends java.lang.annotation.Annotation>[] getAnnotationTypes()
           
 java.lang.String[] getContainersNames()
           
protected  java.util.List<java.lang.String> getDeploymentConfigurationPaths()
          Returns the descriptor paths that might exist at an ejb app.
 java.lang.String[] getIncompatibleSnifferTypes()
           
 boolean handles(ReadableArchive location, java.lang.ClassLoader loader)
          Returns true if the passed file or directory is recognized by this instance.
 boolean isUserVisible()
           
 com.sun.enterprise.module.Module[] setup(java.lang.String containerHome, java.util.logging.Logger logger)
           
 
Methods inherited from class org.glassfish.internal.deployment.GenericSniffer
equals, getDeploymentConfigurations, getModuleType, getURLPatterns, hashCode, tearDown
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbSniffer

public EjbSniffer()

EjbSniffer

public EjbSniffer(java.lang.String containerName,
                  java.lang.String appStigma,
                  java.lang.String urlPattern)
Method Detail

getContainersNames

public java.lang.String[] getContainersNames()

setup

public com.sun.enterprise.module.Module[] setup(java.lang.String containerHome,
                                                java.util.logging.Logger logger)
                                         throws java.io.IOException
Specified by:
setup in interface Sniffer
Overrides:
setup in class GenericSniffer
Throws:
java.io.IOException

handles

public boolean handles(ReadableArchive location,
                       java.lang.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

getAnnotationTypes

public java.lang.Class<? extends java.lang.annotation.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 java.lang.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 java.util.List<java.lang.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.