Skip to main content
Package: com.phoenix_int.aserver.library Class Hierarchy
Implemented Interfaces
Declaration
This class combines several sub-librarians, adding dir lists and component lists together. If there is a conflict in component or directory name, the first librarian wins out, and no error is given.

Constructor Summary

Method Summary

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

PHXLibrarianCombiner

Method Detail

addLibrarian

Adds a librarian to our list

initialize

The XML initialization information for this class is simply a list of <librarian> tags which contain <librarianClass> and <librarianOptions> tags inside. Example:
Specified By: Throws:
  • java.lang.Exception

cleanUp

Recursively tells kids to clean themselves up Specified By:

listComponents

Returns the components in a specific directory Specified By: Parameters:
  • virtualDir - The directory the client asked for
Returns:
  • An array of class names
Throws:

listDirectories

Returns sub-directories from a specified directory Specified By: Parameters:
  • virtualDir - The directory the client asked for
Returns:
  • A Collection of Strings
Throws:

instantiate

Creates an instance of the specified component. Specified By: Parameters:
  • compClass - The class name for the component
  • virtualDir - The directory to search for the component class
Returns:
  • An instance of the associated component class with the file loaded
Throws:
  • java.lang.ClassNotFoundException - if the class is not found
  • java.lang.IllegalAccessException - cannot call constructor
  • java.lang.InstantiationException - cannot call constructor
  • java.lang.reflect.InvocationTargetException - if an exception if the specified component exists, but is not of the right type, or if an exception occurs while creating the class or loading the setup file
  • PHXNoSuchCategoryException - If the virtualDirName passed in is invalid
  • java.lang.Exception - If anything serious goes wrong

instantiate (overload)

Specified By: Throws:
  • java.lang.Exception

instantiateManaged

Creates an instance of the specified component. Typically a librarian will find the appropriate files and pass the request off to the IPHXFactory. It is important that this class throws PHXNoSuchCategoryException and ClassNotFoundException in the appropriate cases as they are handled in special ways by the librarian mounter and librarian combiner. Specified By: Parameters:
  • compClass - The class name for the component
  • virtualDir - The directory the client asked for
Returns: Throws:
  • PHXNoSuchCategoryException - If the virtualDirName passed in is invalid
  • java.lang.ClassNotFoundException - If compClass doesn’t indicate a valid class for the specified directory
  • java.lang.Exception - If anything serious goes wrong

instantiateManaged (overload)

Creates an instance of the specified component. Typically a librarian will find the appropriate files and pass the request off to the IPHXFactory. It is important that this class throws PHXNoSuchCategoryException and ClassNotFoundException in the appropriate cases as they are handled in special ways by the librarian mounter and librarian combiner. Specified By: Parameters:
  • compClass - The class name for the component
  • virtualDir - The directory the client asked for
  • connector - Name of the connector object to use
  • queue - Name of the queue object to use
Returns: Throws:
  • PHXNoSuchCategoryException - If the virtualDirName passed in is invalid
  • java.lang.ClassNotFoundException - If compClass doesn’t indicate a valid class for the specified directory
  • java.lang.Exception - If anything serious goes wrong

describe

Describes the specified component. Specified By: Parameters:
  • compClass - The class name for the component
  • virtualDir - The directory the client asked for
Returns: Throws:
  • java.lang.ClassNotFoundException - if the class is not found
  • PHXNoSuchCategoryException - If the virtualDirName passed in is invalid
  • java.lang.Exception - If anything goes wrong

getQueues

Get the queues for the specified component. Specified By: Parameters:
  • compClass - The class name for the component
  • virtualDir - The directory the client asked for
Returns:
  • A list of queues of the specified component class
Throws:
  • java.lang.ClassNotFoundException - if the class is not found
  • PHXNoSuchCategoryException - If the virtualDirName passed in is invalid
  • java.lang.Exception - If anything goes wrong

getComponentHistory

Gets all version information about a particular component. Specified By: Parameters:
  • compClass - The class name for the component
  • virtualDir - The directory the client asked for
Returns:
  • An instance of PHXComponentBranch which contains all the versions and sub-branches available
Throws:
  • PHXNoSuchCategoryException - If the virtualDirName passed in is invalid
  • java.lang.ClassNotFoundException - If compClass doesn’t indicate a valid class for the specified directory
  • java.lang.Exception - If anything goes wrong

getBranchesAndTags

Fetches a list of all branches and tags. Specified By: Throws:
  • java.lang.Exception - If anything goes wrong