|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.Application
Base class for all Wicket applications. To create a Wicket application, you generally should not directly subclass this class. Instead, you will want to subclass some subclass of Application, like WebApplication, which is appropriate for the protocol and markup type you are working with. Application has the following interesting features / attributes:
ResourceReference for more details.
IResourceFactory,
DefaultButtonImageResourceFactory
and especially
LocalizedImageResource.
Component.getString(String key) and
Component.getString(String key, IModel model).
WebApplication| Constructor Summary | |
Application()
Constructor |
|
| Method Summary | |
void |
addResourceFactory(java.lang.String name,
IResourceFactory resourceFactory)
Adds a resource factory to the list of factories to consult when generating resources automatically |
ApplicationSettings |
createApplicationSettings()
Subclasses could override this to give there own implementation of ApplicationSettings. |
static Application |
get()
Get application for current session. |
java.util.List |
getComponentResolvers()
Get the (modifiable) list of IComponentResolvers. |
IConverterFactory |
getConverterFactory()
Gets the converter factory. |
Localizer |
getLocalizer()
|
MarkupCache |
getMarkupCache()
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
java.lang.String |
getName()
Gets the name of this application. |
ApplicationPages |
getPages()
|
java.util.Iterator |
getPageSets(Page page)
THIS FEATURE IS CURRENTLY EXPERIMENTAL. |
IResourceFactory |
getResourceFactory(java.lang.String name)
|
ResourceStreamLocator |
getResourceStreamLocator()
|
ModificationWatcher |
getResourceWatcher()
|
protected abstract ISessionFactory |
getSessionFactory()
|
ApplicationSettings |
getSettings()
|
SharedResources |
getSharedResources()
|
protected void |
init()
Allows for initialization of the application by a subclass. |
protected void |
internalInit()
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
ICrypt |
newCrypt()
Factory method that creates an instance of de-/encryption class. |
MarkupParser |
newMarkupParser(MarkupContainer container)
Factory method that creates a markup parser. |
protected Page |
onRuntimeException(Page page,
java.lang.RuntimeException e)
Template method that is called when a runtime exception is thrown, just before the actual handling of the runtime exception. |
(package private) void |
resourceFinderChanged()
Called by ApplicationSettings when source path property is changed. |
static void |
set(Application application)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
void |
setLocalizer(Localizer localizer)
Users may provide there own implementation of a localizer, e.g. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Application()
| Method Detail |
public static Application get()
public static void set(Application application)
application - The current application or null for this thread
public final void addResourceFactory(java.lang.String name,
IResourceFactory resourceFactory)
name - The name to give to the factoryresourceFactory - The resource factory to addpublic final java.util.List getComponentResolvers()
for an examplepublic IConverterFactory getConverterFactory()
public final Localizer getLocalizer()
public final void setLocalizer(Localizer localizer)
localizer - public final MarkupCache getMarkupCache()
public final java.lang.String getName()
public final ApplicationPages getPages()
public final java.util.Iterator getPageSets(Page page)
page - The Page for which a list of PageSets should be retrieved
public final IResourceFactory getResourceFactory(java.lang.String name)
name - Name of the factory to get
public ResourceStreamLocator getResourceStreamLocator()
public final ModificationWatcher getResourceWatcher()
public ApplicationSettings getSettings()
public ApplicationSettings createApplicationSettings()
public final SharedResources getSharedResources()
public ICrypt newCrypt()
public MarkupParser newMarkupParser(MarkupContainer container)
container - The wicket container requesting the markup
protected abstract ISessionFactory getSessionFactory()
protected void init()
protected Page onRuntimeException(Page page,
java.lang.RuntimeException e)
page - Any page context where the exception was throwne - The exception
protected void internalInit()
final void resourceFinderChanged()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||