neosim.util
Class JarInfo

java.lang.Object
  |
  +--neosim.util.JarInfo

public class JarInfo
extends java.lang.Object

Represents a loaded Jar file


Constructor Summary
JarInfo(java.lang.String jarName, SimpleClassLoader cl, java.lang.String[] beanNames, boolean[] fromPrototype, MessageHeader[] manifestData)
          Create a JarInfo.
 
Method Summary
 java.beans.BeanInfo getBeanInfo(int i)
          Get the BeanInfo for the ith bean in this jar file
 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?
 MessageHeader 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,
               SimpleClassLoader cl,
               java.lang.String[] beanNames,
               boolean[] fromPrototype,
               MessageHeader[] manifestData)
Create a JarInfo.
Parameters:
jarName - The name of the file containing the Jar
cl - The ClassLoader instance
beanName - The names for all the beans
fromPrototype - Whether this bean is from a serialized prototype
Method Detail

getJarName

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

getJarName

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

getCount

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

getBeanInfo

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

getName

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

isFromPrototype

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

getManifestData

public MessageHeader getManifestData(java.lang.String name)
Get to Manifest Headers for this bean

getInstance

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