net.jbeans.util.jar
Class JarInfo

java.lang.Object
  extended bynet.jbeans.util.jar.JarInfo

public final class JarInfo
extends java.lang.Object

Represents a loaded Jar file

Version:
$Revision: 1.2 $
Author:
Masahiro Takatsuka (masa@jbeans.net)

Constructor Summary
JarInfo(java.lang.String jarName, java.lang.ClassLoader cl, java.lang.String[] beanNames, boolean[] fromPrototype, net.jbeans.util.jar.MIMEHeader[] manifestData)
          Create a JarInfo.
 
Method Summary
 java.beans.BeanInfo getBeanInfo(int i)
          Get the BeanInfo for the ith bean in this jar file
 java.lang.Class getClass(int index)
           
 java.lang.Class getClass(java.lang.String className)
           
 int getCount()
          Get the number of beans in this Jar file
 java.lang.Object getInstance(java.lang.String name)
          Get a new Bean instance given its name
 java.lang.String getJarName()
          Get the name of the file containing this JAR
static java.lang.String getJarName(java.lang.String beanName)
          Global information: where did a given bean came from?
 net.jbeans.util.jar.MIMEHeader getManifestData(java.lang.String name)
          Get to Manifest Headers for this bean
 java.lang.String getName(int i)
          The bean name of this bean
 boolean isFromPrototype(java.lang.String name)
          Was this bean from a serialized prototype? -- unused so far?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarInfo

public JarInfo(java.lang.String jarName,
               java.lang.ClassLoader cl,
               java.lang.String[] beanNames,
               boolean[] fromPrototype,
               net.jbeans.util.jar.MIMEHeader[] manifestData)
Create a JarInfo.

Parameters:
jarName - The name of the file containing the Jar
cl - The ClassLoader instance
fromPrototype - Whether this bean is from a serialized prototype
Method Detail

getJarName

public static final java.lang.String getJarName(java.lang.String beanName)
Global information: where did a given bean came from?


getJarName

public final java.lang.String getJarName()
Get the name of the file containing this JAR


getCount

public final int getCount()
Get the number of beans in this Jar file


getBeanInfo

public final java.beans.BeanInfo getBeanInfo(int i)
Get the BeanInfo for the ith bean in this jar file


getName

public final java.lang.String getName(int i)
The bean name of this bean


isFromPrototype

public final boolean isFromPrototype(java.lang.String name)
Was this bean from a serialized prototype? -- unused so far?


getManifestData

public final net.jbeans.util.jar.MIMEHeader getManifestData(java.lang.String name)
Get to Manifest Headers for this bean


getInstance

public final java.lang.Object getInstance(java.lang.String name)
Get a new Bean instance given its name


getClass

public final java.lang.Class getClass(int index)

getClass

public final java.lang.Class getClass(java.lang.String className)


Copyright © 2003 JBean project. All Rights Reserved.