org.apache.wicket.settings.def
Class FrameworkSettings

java.lang.Object
  extended by org.apache.wicket.settings.def.FrameworkSettings
All Implemented Interfaces:
IEventDispatcher, IFrameworkSettings

public class FrameworkSettings
extends java.lang.Object
implements IFrameworkSettings

Author:
Jonathan Locke, Chris Turner, Eelco Hillenius, Juergen Donnerstag, Johan Compagner, Igor Vaynberg (ivaynberg), Martijn Dashorst, James Carman

Constructor Summary
FrameworkSettings(Application application)
          Construct.
 
Method Summary
 void add(IEventDispatcher dispatcher)
          Registers a new event dispatcher
 void dispatchEvent(java.lang.Object sink, IEvent<?> event, Component component)
          Dispatches event to registered dispatchers
 IDetachListener getDetachListener()
           
 ISerializer getSerializer()
           
 java.lang.String getVersion()
          Gets the Wicket version.
 void setDetachListener(IDetachListener detachListener)
          Sets detach listener
 void setSerializer(ISerializer pageSerializer)
          Sets the ISerializer that will be used to convert objects to/from byte arrays
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameworkSettings

public FrameworkSettings(Application application)
Construct.

Parameters:
application -
Method Detail

getVersion

public java.lang.String getVersion()
Description copied from interface: IFrameworkSettings
Gets the Wicket version. The Wicket version is in the same format as the version element in the pom.xml file (project descriptor). The version is generated by maven in the build/release cycle and put in the wicket.properties file located in the root folder of the Wicket jar. The version usually follows one of the following formats:

Specified by:
getVersion in interface IFrameworkSettings
Returns:
the Wicket version
See Also:
IFrameworkSettings.getVersion()

getDetachListener

public IDetachListener getDetachListener()
Specified by:
getDetachListener in interface IFrameworkSettings
Returns:
detach listener or null if none
See Also:
IFrameworkSettings.getDetachListener()

setDetachListener

public void setDetachListener(IDetachListener detachListener)
Description copied from interface: IFrameworkSettings
Sets detach listener

Specified by:
setDetachListener in interface IFrameworkSettings
Parameters:
detachListener - listener or null to remove
See Also:
IFrameworkSettings.setDetachListener(org.apache.wicket.IDetachListener)

add

public void add(IEventDispatcher dispatcher)
Description copied from interface: IFrameworkSettings
Registers a new event dispatcher

Specified by:
add in interface IFrameworkSettings

dispatchEvent

public void dispatchEvent(java.lang.Object sink,
                          IEvent<?> event,
                          Component component)
Dispatches event to registered dispatchers

Specified by:
dispatchEvent in interface IEventDispatcher
Parameters:
sink -
event -
component -
See Also:
IEventDispatcher.dispatchEvent(Object, IEvent, Component)

setSerializer

public void setSerializer(ISerializer pageSerializer)
Description copied from interface: IFrameworkSettings
Sets the ISerializer that will be used to convert objects to/from byte arrays

Specified by:
setSerializer in interface IFrameworkSettings
Parameters:
pageSerializer - the ISerializer to use

getSerializer

public ISerializer getSerializer()
Specified by:
getSerializer in interface IFrameworkSettings
Returns:
the ISerializer that will be used to convert objects to/from byte arrays


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.