|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class to manage the types of creators and the instansiated creators.
Method Summary | |
void |
addCreator(java.lang.String scriptName,
Creator creator)
Add a new creator |
void |
addCreator(java.lang.String typename,
java.lang.String scriptName,
java.util.Map params)
Add a new creator |
void |
addCreatorType(java.lang.String typename,
java.lang.Class clazz)
In init mode, add a new type of creator |
Creator |
getCreator(java.lang.String scriptName)
Find an Creator by name |
java.util.Collection |
getCreatorNames()
Get a list of the javascript names of the allowed creators. |
boolean |
isDebug()
Debug mode allows access to the list of creator names |
void |
setCreators(java.util.Map creators)
Sets the creators for this creator manager. |
Method Detail |
public boolean isDebug()
getCreatorNames()
public void addCreatorType(java.lang.String typename, java.lang.Class clazz)
typename
- The name of the new creator typeclazz
- The class that we createpublic void addCreator(java.lang.String typename, java.lang.String scriptName, java.util.Map params) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.IllegalArgumentException
typename
- The class to use as a creatorscriptName
- The name of the creator to Javascriptparams
- The extra parameters to allow the creator to configure itself
java.lang.InstantiationException
- If reflection based creation fails
java.lang.IllegalAccessException
- If reflection based creation fails
java.lang.IllegalArgumentException
- If we have a duplicate namepublic void addCreator(java.lang.String scriptName, Creator creator) throws java.lang.IllegalArgumentException
scriptName
- The name of the creator to Javascriptcreator
- The creator to add
java.lang.IllegalArgumentException
- If we have a duplicate namepublic java.util.Collection getCreatorNames() throws java.lang.SecurityException
java.lang.SecurityException
- If we are not in debug modepublic Creator getCreator(java.lang.String scriptName) throws java.lang.SecurityException
Creator
by name
scriptName
- The name of the creator to Javascript
java.lang.SecurityException
- If the Creator is not knownpublic void setCreators(java.util.Map creators)
creators
- the map of managed beans and their creator instances
|
Copyright ? 2005 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |