|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portaluiinfrastructure.tags.manager.TagLibManager
public class TagLibManager
The TagLibManager is a singleton class that returns tags. This uses dynamic discovery to import all of the ATag and ITagLibrary objects in certain locations, and then maintain a hashmap of clones, with possible resource pooling.
Method Summary | |
---|---|
static ITagLibManager |
getInstance()
|
XPHashtable |
GetLibraries()
Return a data structure holding name and version number of all libraries loaded. |
XPArrayList |
GetLibraryTagList(java.lang.String _sLibname,
double _dVersion)
Return tag info for a specific library TODO this may not be the form we really want to return this data in that's still being figured out - CVN |
XPArrayList |
GetLibraryTags(java.lang.String _sLibname,
double _dVersion)
Return all tags in library TODO this may not be the form we really want to return this data in that's still being figured out - CVN |
int |
GetNumCustomTagLibraries()
This method returns the number of custom Tag Libraries currently loaded. |
int |
GetNumCustomTags()
This method returns the number of custom Tags currently loaded. |
ATag |
GetTag(java.lang.String _strTagName,
java.lang.String _strLibraryName)
Create the requested Tag. |
ATag |
GetTag(java.lang.String _strTagName,
java.lang.String _strLibraryName,
double _dLibraryVersion)
Create the requested Tag. |
TagLibraryMetaData |
GetTagLibMetadata(java.lang.String _sLibname,
double _dVersion)
Return library meta data on a specific library and version. |
void |
GetTagMetadata(java.lang.String _sLibname,
double _dVersion,
java.lang.String _sTagname)
Return metadata or something on all tags in library TODO not yet implemented cvn |
boolean |
HasTag(java.lang.String _strTagName,
java.lang.String _strLibraryName)
Return true if the tag specified by the parameters exists otherwise return false. |
boolean |
HasTag(java.lang.String _strTagName,
java.lang.String _strLibraryName,
double _dLibraryVersion)
Return true if the tag specified by the parameters exists otherwise return false. |
void |
LoadClasses(java.lang.String strLibDir,
java.lang.String strConfigFile)
This method initializes the TagLibManager and should only be called by the Application Warmup. |
void |
LoadCustomClasses(java.lang.String strLibDir,
java.lang.String strConfigFile)
This method initializes the TagLibManager with custom tags to overwrite the original ones and should only be called by the the Application Warmup. |
void |
ReloadAllTagLibraries()
This method reloads both the standard and custom tag libraries from the config files. |
void |
ReloadTagLibrary(java.lang.String _sLibname,
double _dVersion)
This method reloads a particular version of a tag library from the same library file (i.e. |
static void |
setTestInstance(ITagLibManager testManager)
Unit tests should use this method to overwrite/teardown existing singleton. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ITagLibManager getInstance()
public static void setTestInstance(ITagLibManager testManager)
public ATag GetTag(java.lang.String _strTagName, java.lang.String _strLibraryName, double _dLibraryVersion)
ITagLibManager
GetTag
in interface ITagLibManager
_dLibraryVersion
- The version of the library that contains
the requested tag
public ATag GetTag(java.lang.String _strTagName, java.lang.String _strLibraryName)
ITagLibManager
GetTag
in interface ITagLibManager
public boolean HasTag(java.lang.String _strTagName, java.lang.String _strLibraryName, double _dLibraryVersion)
ITagLibManager
HasTag
in interface ITagLibManager
_dLibraryVersion
- The version of the library that contains
the requested tag
public boolean HasTag(java.lang.String _strTagName, java.lang.String _strLibraryName)
ITagLibManager
HasTag
in interface ITagLibManager
public void LoadClasses(java.lang.String strLibDir, java.lang.String strConfigFile)
ITagLibManager
LoadClasses
in interface ITagLibManager
strLibDir
- The file directory where jars and dlls can be foundstrConfigFile
- the name of the config filepublic void LoadCustomClasses(java.lang.String strLibDir, java.lang.String strConfigFile)
ITagLibManager
LoadCustomClasses
in interface ITagLibManager
strLibDir
- The file directory where jars and dlls can be foundstrConfigFile
- the name of the custom config filepublic XPHashtable GetLibraries()
ITagLibManager
GetLibraries
in interface ITagLibManager
public TagLibraryMetaData GetTagLibMetadata(java.lang.String _sLibname, double _dVersion)
ITagLibManager
GetTagLibMetadata
in interface ITagLibManager
public XPArrayList GetLibraryTagList(java.lang.String _sLibname, double _dVersion)
ITagLibManager
GetLibraryTagList
in interface ITagLibManager
public XPArrayList GetLibraryTags(java.lang.String _sLibname, double _dVersion)
ITagLibManager
GetLibraryTags
in interface ITagLibManager
public void GetTagMetadata(java.lang.String _sLibname, double _dVersion, java.lang.String _sTagname)
ITagLibManager
GetTagMetadata
in interface ITagLibManager
public void ReloadTagLibrary(java.lang.String _sLibname, double _dVersion)
ITagLibManager
ReloadTagLibrary
in interface ITagLibManager
_sLibname
- String The name of the library to reload (not display name)._dVersion
- double The version number of the library to reload.public void ReloadAllTagLibraries()
ITagLibManager
ReloadAllTagLibraries
in interface ITagLibManager
public int GetNumCustomTagLibraries()
ITagLibManager
GetNumCustomTagLibraries
in interface ITagLibManager
public int GetNumCustomTags()
ITagLibManager
GetNumCustomTags
in interface ITagLibManager
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |