org.glassfish.extras.osgicontainer
Class OSGiArchiveHandler

java.lang.Object
  extended by org.glassfish.internal.deployment.GenericHandler
      extended by org.glassfish.extras.osgicontainer.OSGiArchiveHandler
All Implemented Interfaces:
ArchiveHandler, CompositeHandler

@Service(name="osgi")
@Scoped(value=org.jvnet.hk2.component.Singleton.class)
public class OSGiArchiveHandler
extends GenericHandler
implements CompositeHandler

Archive Handler for OSGi modules.

Author:
Jerome Dochez

Field Summary
 
Fields inherited from class org.glassfish.internal.deployment.GenericHandler
habitat
 
Constructor Summary
OSGiArchiveHandler()
           
 
Method Summary
 boolean accept(ReadableArchive source, java.lang.String entryName)
           
 java.lang.String getArchiveType()
           
 java.lang.ClassLoader getClassLoader(java.lang.ClassLoader parent, DeploymentContext context)
           
 boolean handles(ReadableArchive archive)
           
 
Methods inherited from class org.glassfish.internal.deployment.GenericHandler
expand, getDefaultApplicationName, getDefaultApplicationName, getManifest, getVersionIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.api.deployment.archive.ArchiveHandler
expand, getDefaultApplicationName, getDefaultApplicationName, getManifest, getVersionIdentifier
 

Constructor Detail

OSGiArchiveHandler

public OSGiArchiveHandler()
Method Detail

getArchiveType

public java.lang.String getArchiveType()
Specified by:
getArchiveType in interface ArchiveHandler

accept

public boolean accept(ReadableArchive source,
                      java.lang.String entryName)
Specified by:
accept in interface CompositeHandler

handles

public boolean handles(ReadableArchive archive)
                throws java.io.IOException
Specified by:
handles in interface ArchiveHandler
Throws:
java.io.IOException

getClassLoader

public java.lang.ClassLoader getClassLoader(java.lang.ClassLoader parent,
                                            DeploymentContext context)
Specified by:
getClassLoader in interface ArchiveHandler


Copyright © 2012 GlassFish Community. All Rights Reserved.