|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.impl.DefaultCreatorManager
public class DefaultCreatorManager
A class to manage the types of creators and the instantiated creators.
| Constructor Summary | |
|---|---|
DefaultCreatorManager()
|
|
| Method Summary | |
|---|---|
void |
addCreator(Creator creator)
Add a new creator. |
void |
addCreator(java.lang.String typeName,
java.util.Map<java.lang.String,java.lang.String> params)
Add a new creator |
void |
addCreatorType(java.lang.String typeName,
java.lang.String className)
In init mode, add a new type of creator |
void |
contextDestroyed()
Called when a ServletContext is being destroyed. |
Creator |
getCreator(java.lang.String scriptName,
boolean includeHidden)
Find an Creator by name |
java.util.Collection<java.lang.String> |
getCreatorNames(boolean includeHidden)
Get a list of the javascript names of the allowed creators. |
boolean |
isDebug()
Debug mode allows access to the list of creator names |
boolean |
isInitApplicationScopeCreatorsAtStartup()
Do we do full-create on startup? |
void |
servletDestroyed()
Called when GenericServlet.destroy() is called. |
void |
setCreators(java.util.Map<java.lang.String,Creator> creators)
Sets the creators for this creator manager. |
void |
setDebug(boolean debug)
Set the debug status |
void |
setInitApplicationScopeCreatorsAtStartup(boolean initApplicationScopeCreatorsAtStartup)
Do we do full-create on startup? |
void |
setServletContext(javax.servlet.ServletContext servletContext)
When initApplicationScopeCreatorsAtStartup = true we need somewhere to store the objects |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCreatorManager()
| Method Detail |
|---|
public void addCreatorType(java.lang.String typeName,
java.lang.String className)
CreatorManager
addCreatorType in interface CreatorManagertypeName - The name of the new creator typeclassName - The class that we create
public void addCreator(java.lang.String typeName,
java.util.Map<java.lang.String,java.lang.String> params)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.IllegalArgumentException
CreatorManager
addCreator in interface CreatorManagertypeName - The class to use as a creatorparams - 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 name
public void addCreator(Creator creator)
throws java.lang.IllegalArgumentException
CreatorManager
addCreator in interface CreatorManagercreator - The creator to add
java.lang.IllegalArgumentException - If we have a duplicate name
public java.util.Collection<java.lang.String> getCreatorNames(boolean includeHidden)
throws java.lang.SecurityException
CreatorManager
getCreatorNames in interface CreatorManagerincludeHidden - Should we include hidden classes in the list?
java.lang.SecurityException - If we are not in debug mode
public Creator getCreator(java.lang.String scriptName,
boolean includeHidden)
throws java.lang.SecurityException
CreatorManagerCreator by name
getCreator in interface CreatorManagerscriptName - The name of the creator to JavascriptincludeHidden - Should we include hidden classes?
java.lang.SecurityException - If the Creator is not knownpublic void contextDestroyed()
UninitializingBeanServletContext is being destroyed.
DWR finds out about this destruction if (and only if) in web.xml there
is a DwrListener registered.
This happens before the GenericServlet.destroy()
is called.
If DwrListener is not registered, this will not happen
This method should only be used when we need to take action to enable the servlet to stop cleanly. Typically this will be restricted to stopping reverse ajax threads.
contextDestroyed in interface UninitializingBeanpublic void servletDestroyed()
UninitializingBeanGenericServlet.destroy() is called.
This event is the preferred time to close resources that don't require
all connections to be closed. The servletDestroy method is far more
likely to be called.
servletDestroyed in interface UninitializingBeanpublic void setCreators(java.util.Map<java.lang.String,Creator> creators)
CreatorManager
setCreators in interface CreatorManagercreators - the map of managed beans and their creator instancespublic boolean isDebug()
CreatorManager
isDebug in interface CreatorManagerpublic void setDebug(boolean debug)
debug - The new debug settingpublic boolean isInitApplicationScopeCreatorsAtStartup()
public void setInitApplicationScopeCreatorsAtStartup(boolean initApplicationScopeCreatorsAtStartup)
initApplicationScopeCreatorsAtStartup - true for full createpublic void setServletContext(javax.servlet.ServletContext servletContext)
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||