CESE 1.4.7

com.simulogic.cese
Class ModelInstaller

java.lang.Object
  extended by com.simulogic.cese.ModelInstaller

public class ModelInstaller
extends java.lang.Object

The ModelInstaller installs models from jar files (as JavaBeans)


Constructor Summary
ModelInstaller()
           
 
Method Summary
 void addJarFile(java.lang.String filename)
          Installs model(s) as the Java Beans in the jar file First it loads all the Beans and resources into the JarClassLoader.
 java.lang.Object addUserBean(java.lang.ClassLoader loader, java.lang.String name)
          Adds the bean to the user tab on the panel.
 java.util.Vector getInstalledModels()
          Returns newly installed models
 java.util.Vector getInstalledNames()
          Returns newly installed models names
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelInstaller

public ModelInstaller()
Method Detail

getInstalledNames

public java.util.Vector getInstalledNames()
Returns newly installed models names

Returns:
installed model names

getInstalledModels

public java.util.Vector getInstalledModels()
Returns newly installed models

Returns:
installed models

addJarFile

public void addJarFile(java.lang.String filename)
                throws java.io.IOException
Installs model(s) as the Java Beans in the jar file First it loads all the Beans and resources into the JarClassLoader. Then it determines which resources are beans (Java-Bean: True) from the Manifest.

Parameters:
filename - full path to the jar file
Throws:
java.io.IOException

addUserBean

public java.lang.Object addUserBean(java.lang.ClassLoader loader,
                                    java.lang.String name)
                             throws java.io.IOException
Adds the bean to the user tab on the panel. This method determines if the bean is from a class or from a serializable file.

Parameters:
loader - ClassLoader to use for instantiation and class resolution
name - Name of the bean and resource to use. The format should be the full path to the resource i.e. sunw/demo/buttons/OurButton.class.
Returns:
loaded bean object
Throws:
java.io.IOException

CESE 1.4.7

Copyright (c) 1999 - 2007 Cell Electrophysiology Simulation Environment (CESE). All rights reserved.