Skip navigation links


com.essbase.eas.client.manager
Class ComponentManager

java.lang.Object
  extended by com.essbase.eas.client.manager.ComponentManager

All Implemented Interfaces:
ClassFinder

public class ComponentManager
extends java.lang.Object
implements ClassFinder

This class is the component manager for the console.

Version:
2.00, 09/18/2001
Author:
Hank Cox

Method Summary
static void addComponent(Information value)
          adds a new component to the set of installed components.
static java.lang.Class classForName(java.lang.String className)
           
 java.lang.Class getClass(java.lang.String className)
          finds a class belonging to a component candidate and loads the class.
static java.lang.Class getClassForComponent(Information info, java.lang.String className)
          finds a class belonging to a specific component and loads the class.
static java.lang.Class getClassForComponent(java.lang.String path, java.lang.String className)
          finds a class belonging to a component candidate and loads the class.
static java.lang.String[] getInstalledComponentList()
          retrieve the list of installed components.
static Information[] getInstalledComponents()
          retrieves the set of installed components; returns them as an array of Information objects.
 java.lang.ClassLoader getLoaderForClass(java.lang.Class cl)
           
static java.lang.ClassLoader getLoaderForComponent(java.lang.String path)
          creates a class loader for a plugin or plugin candidate.
static ComponentManager getManager()
           
static void removeComponent(Information value)
          removes a component from the set of installed components.
static void saveInstalledComponents()
          saves the list of installed components to a persistent file.
static void setComponentsTo(Information[] values)
          sets the list of components.
static void showConfigureDialog()
          displays a dialog box to manager and configure the plugin components.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getInstalledComponentList

public static java.lang.String[] getInstalledComponentList()
retrieve the list of installed components. Retrieves a String array containing the package names of installed components. Warning: we should probably be returning a copy of this array.

getInstalledComponents

public static Information[] getInstalledComponents()
retrieves the set of installed components; returns them as an array of Information objects.

addComponent

public static void addComponent(Information value)
adds a new component to the set of installed components.

removeComponent

public static void removeComponent(Information value)
removes a component from the set of installed components.

saveInstalledComponents

public static void saveInstalledComponents()
saves the list of installed components to a persistent file.

showConfigureDialog

public static void showConfigureDialog()
displays a dialog box to manager and configure the plugin components.

getLoaderForComponent

public static java.lang.ClassLoader getLoaderForComponent(java.lang.String path)
creates a class loader for a plugin or plugin candidate.

getLoaderForClass

public java.lang.ClassLoader getLoaderForClass(java.lang.Class cl)
Specified by:
getLoaderForClass in interface ClassFinder

setComponentsTo

public static void setComponentsTo(Information[] values)
sets the list of components. This method is public but should not normally be called by applications or components. It should only be called by a client's plugin configuration code.

getClassForComponent

public static java.lang.Class getClassForComponent(Information info,
                                                   java.lang.String className)
                                            throws java.lang.ClassNotFoundException
finds a class belonging to a specific component and loads the class.
Throws:
java.lang.ClassNotFoundException

getClassForComponent

public static java.lang.Class getClassForComponent(java.lang.String path,
                                                   java.lang.String className)
                                            throws java.lang.ClassNotFoundException
finds a class belonging to a component candidate and loads the class.
Throws:
java.lang.ClassNotFoundException

getClass

public java.lang.Class getClass(java.lang.String className)
                         throws java.lang.ClassNotFoundException
finds a class belonging to a component candidate and loads the class.
Specified by:
getClass in interface ClassFinder
Throws:
java.lang.ClassNotFoundException

classForName

public static java.lang.Class classForName(java.lang.String className)
                                    throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

getManager

public static ComponentManager getManager()

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.