org.glassfish.osgijavaeebase
Class OSGiJavaEEArchive
java.lang.Object
com.sun.enterprise.deploy.shared.AbstractReadableArchive
org.glassfish.osgijavaeebase.OSGiJavaEEArchive
- All Implemented Interfaces:
- org.glassfish.api.deployment.archive.Archive, org.glassfish.api.deployment.archive.ReadableArchive
public abstract class OSGiJavaEEArchive
- extends com.sun.enterprise.deploy.shared.AbstractReadableArchive
- implements org.glassfish.api.deployment.archive.ReadableArchive
This is a very important class in our implementation of hybrid applications. This class maps a bundle and its
attached fragments to Java EE archive format.
- Author:
- Sanjeeb.Sahoo@Sun.COM
|
Field Summary |
protected java.util.Map<org.osgi.framework.Bundle,OSGiBundleArchive> |
archives
|
protected static java.lang.String |
DOT
|
protected org.osgi.framework.Bundle[] |
fragments
|
protected org.osgi.framework.Bundle |
host
|
protected static java.lang.String |
JAR_EXT
|
| Fields inherited from class com.sun.enterprise.deploy.shared.AbstractReadableArchive |
extraData, parentArchive |
|
Constructor Summary |
OSGiJavaEEArchive(org.osgi.framework.Bundle[] fragments,
org.osgi.framework.Bundle host)
|
| Methods inherited from class com.sun.enterprise.deploy.shared.AbstractReadableArchive |
getExtraData, removeExtraData, setExtraData |
| 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.ReadableArchive |
getExtraData, removeExtraData, setExtraData |
host
protected org.osgi.framework.Bundle host
fragments
protected org.osgi.framework.Bundle[] fragments
JAR_EXT
protected static final java.lang.String JAR_EXT
- See Also:
- Constant Field Values
DOT
protected static final java.lang.String DOT
- See Also:
- Constant Field Values
archives
protected final java.util.Map<org.osgi.framework.Bundle,OSGiBundleArchive> archives
OSGiJavaEEArchive
public OSGiJavaEEArchive(org.osgi.framework.Bundle[] fragments,
org.osgi.framework.Bundle host)
getArchive
protected OSGiBundleArchive getArchive(org.osgi.framework.Bundle b)
getEntries
protected java.util.Map<java.lang.String,OSGiJavaEEArchive.ArchiveEntry> getEntries()
init
protected abstract void init()
getEffectiveBCP
protected OSGiJavaEEArchive.EffectiveBCP getEffectiveBCP()
getEntry
public java.io.InputStream getEntry(java.lang.String name)
throws java.io.IOException
- Specified by:
getEntry in interface org.glassfish.api.deployment.archive.ReadableArchive
- Throws:
java.io.IOException
exists
public boolean exists(java.lang.String name)
throws java.io.IOException
- Specified by:
exists in interface org.glassfish.api.deployment.archive.ReadableArchive
- Throws:
java.io.IOException
getEntrySize
public long getEntrySize(java.lang.String name)
- Specified by:
getEntrySize in interface org.glassfish.api.deployment.archive.ReadableArchive
open
public void open(java.net.URI uri)
throws java.io.IOException
- Specified by:
open in interface org.glassfish.api.deployment.archive.ReadableArchive
- Throws:
java.io.IOException
getSubArchive
public org.glassfish.api.deployment.archive.ReadableArchive getSubArchive(java.lang.String name)
throws java.io.IOException
- Specified by:
getSubArchive in interface org.glassfish.api.deployment.archive.ReadableArchive
- Throws:
java.io.IOException
exists
public boolean exists()
- Specified by:
exists in interface org.glassfish.api.deployment.archive.ReadableArchive
delete
public boolean delete()
- Specified by:
delete in interface org.glassfish.api.deployment.archive.ReadableArchive
renameTo
public boolean renameTo(java.lang.String name)
- Specified by:
renameTo in interface org.glassfish.api.deployment.archive.ReadableArchive
setParentArchive
public void setParentArchive(org.glassfish.api.deployment.archive.ReadableArchive parentArchive)
- Specified by:
setParentArchive in interface org.glassfish.api.deployment.archive.ReadableArchive- Overrides:
setParentArchive in class com.sun.enterprise.deploy.shared.AbstractReadableArchive
getParentArchive
public org.glassfish.api.deployment.archive.ReadableArchive getParentArchive()
- Specified by:
getParentArchive in interface org.glassfish.api.deployment.archive.ReadableArchive- Overrides:
getParentArchive in class com.sun.enterprise.deploy.shared.AbstractReadableArchive
close
public void close()
throws java.io.IOException
- Specified by:
close in interface org.glassfish.api.deployment.archive.Archive
- Throws:
java.io.IOException
entries
public java.util.Enumeration<java.lang.String> entries()
- Specified by:
entries in interface org.glassfish.api.deployment.archive.Archive
entries
public java.util.Enumeration<java.lang.String> entries(java.lang.String prefix)
- Specified by:
entries in interface org.glassfish.api.deployment.archive.Archive
getDirectories
public java.util.Collection<java.lang.String> getDirectories()
throws java.io.IOException
- Specified by:
getDirectories in interface org.glassfish.api.deployment.archive.Archive
- Throws:
java.io.IOException
isDirectory
public boolean isDirectory(java.lang.String name)
- Specified by:
isDirectory in interface org.glassfish.api.deployment.archive.Archive
getManifest
public java.util.jar.Manifest getManifest()
throws java.io.IOException
- Specified by:
getManifest in interface org.glassfish.api.deployment.archive.Archive
- Throws:
java.io.IOException
getURI
public java.net.URI getURI()
- Specified by:
getURI in interface org.glassfish.api.deployment.archive.Archive
getArchiveSize
public long getArchiveSize()
throws java.lang.SecurityException
- Specified by:
getArchiveSize in interface org.glassfish.api.deployment.archive.Archive
- Throws:
java.lang.SecurityException
getName
public java.lang.String getName()
- Specified by:
getName in interface org.glassfish.api.deployment.archive.Archive
Copyright © 2011 GlassFish Community. All Rights Reserved.