org.glassfish.scripting.jruby.sniffer
Class JRubySniffer

java.lang.Object
  extended by org.glassfish.scripting.jruby.sniffer.JRubySniffer
All Implemented Interfaces:
org.glassfish.api.container.Sniffer

@Service(name="jruby")
@Scoped(value=org.jvnet.hk2.component.Singleton.class)
public class JRubySniffer
extends java.lang.Object
implements org.glassfish.api.container.Sniffer

JRuby sniffer

Author:
Vivek Pandey

Constructor Summary
JRubySniffer()
           
 
Method Summary
 java.lang.Class<? extends java.lang.annotation.Annotation>[] getAnnotationTypes()
           
 java.lang.String[] getContainersNames()
           
 java.util.Map<java.lang.String,java.lang.String> getDeploymentConfigurations(org.glassfish.api.deployment.archive.ReadableArchive readableArchive)
           
 java.lang.String[] getIncompatibleSnifferTypes()
           
 java.lang.String getModuleType()
           
 java.lang.String[] getURLPatterns()
           
 boolean handles(org.glassfish.api.deployment.archive.ReadableArchive location, java.lang.ClassLoader loader)
           
 boolean isUserVisible()
           
 com.sun.enterprise.module.Module[] setup(java.lang.String containerHome, java.util.logging.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 ModuleDefinition for the module containing the core implementation of the container.

 void tearDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRubySniffer

public JRubySniffer()
Method Detail

handles

public boolean handles(org.glassfish.api.deployment.archive.ReadableArchive location,
                       java.lang.ClassLoader loader)
Specified by:
handles in interface org.glassfish.api.container.Sniffer

getURLPatterns

public java.lang.String[] getURLPatterns()
Specified by:
getURLPatterns in interface org.glassfish.api.container.Sniffer

getAnnotationTypes

public java.lang.Class<? extends java.lang.annotation.Annotation>[] getAnnotationTypes()
Specified by:
getAnnotationTypes in interface org.glassfish.api.container.Sniffer

getModuleType

public java.lang.String getModuleType()
Specified by:
getModuleType in interface org.glassfish.api.container.Sniffer

setup

public com.sun.enterprise.module.Module[] setup(java.lang.String containerHome,
                                                java.util.logging.Logger logger)
                                         throws java.io.IOException
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 ModuleDefinition 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.

Specified by:
setup in interface org.glassfish.api.container.Sniffer
Parameters:
containerHome - is where the container implementation resides
logger - the logger to use
Returns:
the module definition of the core container implementation.
Throws:
java.io.IOException - exception if something goes sour

tearDown

public void tearDown()
Specified by:
tearDown in interface org.glassfish.api.container.Sniffer

getContainersNames

public java.lang.String[] getContainersNames()
Specified by:
getContainersNames in interface org.glassfish.api.container.Sniffer

isUserVisible

public boolean isUserVisible()
Specified by:
isUserVisible in interface org.glassfish.api.container.Sniffer
Returns:
whether this sniffer should be visible to user

getDeploymentConfigurations

public java.util.Map<java.lang.String,java.lang.String> getDeploymentConfigurations(org.glassfish.api.deployment.archive.ReadableArchive readableArchive)
                                                                             throws java.io.IOException
Specified by:
getDeploymentConfigurations in interface org.glassfish.api.container.Sniffer
Throws:
java.io.IOException

getIncompatibleSnifferTypes

public java.lang.String[] getIncompatibleSnifferTypes()
Specified by:
getIncompatibleSnifferTypes in interface org.glassfish.api.container.Sniffer


Copyright © 2009 GlassFish.org. All Rights Reserved.