pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.bundle
Class Controller

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
Direct Known Subclasses:
AbstractAccessControlEditor, AbstractBasicContentEditor, AbstractContentDisplayer, AbstractContentRegistryEditor, AbstractStatisticsController, AccessControlEditor, CheckoutController, CleanSitemapAndContentRegistry, CMSFormMailer, CMSFormProcessor, CMSPageEditor, CommandGenerator, Editor, FCKEditorBrowser, FileBrowser, FilterContentDisplayer, FilterContentEditor, FilterEditor, FilterMatchesEditor, FilterRulesEditor, GetFullSitemap, GroupAnalysisViewDegunkController, HibernateStatistics, HomepageRedirector, InitWebsiteAdministration, InitWestPanelController, InvoicePaymentController, LocaleCopy, LocalizationLocator, PageImpressionRecorder, PayPalPaymentController, PriceUpdateController, RepresentativeDisplayer, RuleBasedRedirector, SearchEngineQualityControl, SearchSite, SearchSiteSuggestions, ShopOrderViewer, ShoppingCartController, ShopSettingsEditor, SignUpController, SitemapEditor, SitemapManipulator, SitemapMenuController, SiteSearchRebuild, Status, StoreContentImageGroupEditor, StyleController, StyleEditor, SubEditorSelectionAttribute, SurveyController, SurveyCreatorController, ThemesController, ThemesEditor, UploadProgressCheck, UserSelfEditController, UserStatisticsController, VFSImporter, ViewEditor, WirecardCCPaymentController, WirecardEFTPaymentController

public class Controller
extends java.lang.Object

is the base class for all Controllers of pulse.

Attention: Controllers are singletons and therefore not thread-safe. Both static and instance fields are shared among different requests.

The execution of the Controller's methods are controlled by annotations.

Version:
$Revision: 1383 $
Author:
Thomas Weber
See Also:
Action, AnyAction, Permission, Groups

Nested Class Summary
static class Controller.AlwaysRun
          enumerates the different settings for AlwaysRun.
 
Constructor Summary
Controller()
           
 
Method Summary
 Controller.AlwaysRun getAlwaysRun()
          returns the AlwaysRun setting of the Controller.
 boolean isAlwaysRun()
          returns whether the Controller is run for every request, or if it is run only during request for its Bundle.
 void setAlwaysRun(Controller.AlwaysRun ar)
          is used during Bundle initialisation, to configure the always run behaviour of the Controller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Controller

public Controller()
Method Detail

setAlwaysRun

public final void setAlwaysRun(Controller.AlwaysRun ar)
is used during Bundle initialisation, to configure the always run behaviour of the Controller.

Parameters:
ar - the always run setting

isAlwaysRun

public final boolean isAlwaysRun()
returns whether the Controller is run for every request, or if it is run only during request for its Bundle.

Returns:
whether the Controller is run for every request, or if it is run only during request for its Bundle.

getAlwaysRun

public final Controller.AlwaysRun getAlwaysRun()
returns the AlwaysRun setting of the Controller.

Returns:
the AlwaysRun setting