org.ztemplates.web.standalone
Class ZTemplatesStandalone

java.lang.Object
  extended by org.ztemplates.web.standalone.ZTemplatesStandalone
All Implemented Interfaces:
ZIApplicationServiceRepository, ZICoreServiceRepository, ZIServiceRepository

public class ZTemplatesStandalone
extends Object
implements ZIServiceRepository

holds the per thread services of ztemplates in a standalone environment.

Author:
www.gerdziegler.de

Constructor Summary
ZTemplatesStandalone(ZIServletService servletService, ZIApplicationService applicationService, ZIActionService actionService, ZIRenderService renderService, ZIEncryptionService encryptionService, ZISecurityService securityService, ZIExceptionService exceptionService, ZIMessageService messageService, ZIFormService formService)
           
 
Method Summary
static void cleanup()
           
static ZIServiceRepository createServiceRepository(String applicationName, Locale locale, ZISecurityProvider securityProvider)
           
 ZIActionService getActionService()
           
 ZIApplicationService getApplicationService()
           
 ZIEncryptionService getEncryptionService()
           
 ZIExceptionService getExceptionService()
           
 ZIFormService getFormService()
           
 ZIMessageService getMessageService()
           
 ZIRenderService getRenderService()
           
 ZISecurityService getSecurityService()
           
 ZIServletService getServletService()
           
static void init(Locale locale, ZISecurityProvider securityProvider)
          calls init() with default applicationName use if your application server does not share classloaders between webapps.
static void init(String applicationName, Locale locale, ZISecurityProvider securityProvider)
          use this if you provide a applicationName servletContext initParameter to explicitly set a application name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZTemplatesStandalone

public ZTemplatesStandalone(ZIServletService servletService,
                            ZIApplicationService applicationService,
                            ZIActionService actionService,
                            ZIRenderService renderService,
                            ZIEncryptionService encryptionService,
                            ZISecurityService securityService,
                            ZIExceptionService exceptionService,
                            ZIMessageService messageService,
                            ZIFormService formService)
Method Detail

init

public static void init(Locale locale,
                        ZISecurityProvider securityProvider)
                 throws Exception
calls init() with default applicationName use if your application server does not share classloaders between webapps.

Parameters:
locale -
securityProvider -
Throws:
Exception

init

public static void init(String applicationName,
                        Locale locale,
                        ZISecurityProvider securityProvider)
                 throws Exception
use this if you provide a applicationName servletContext initParameter to explicitly set a application name. This is needed if you explicitly configure your application server to share the classloader between webapps.

Parameters:
applicationName -
locale -
securityProvider -
Throws:
Exception

cleanup

public static void cleanup()
                    throws Exception
Throws:
Exception

createServiceRepository

public static ZIServiceRepository createServiceRepository(String applicationName,
                                                          Locale locale,
                                                          ZISecurityProvider securityProvider)
                                                   throws Exception
Throws:
Exception

getServletService

public ZIServletService getServletService()
Specified by:
getServletService in interface ZICoreServiceRepository

getApplicationService

public ZIApplicationService getApplicationService()
Specified by:
getApplicationService in interface ZICoreServiceRepository

getRenderService

public ZIRenderService getRenderService()
Specified by:
getRenderService in interface ZICoreServiceRepository

getActionService

public ZIActionService getActionService()
Specified by:
getActionService in interface ZICoreServiceRepository

getEncryptionService

public ZIEncryptionService getEncryptionService()
Specified by:
getEncryptionService in interface ZIApplicationServiceRepository

getSecurityService

public ZISecurityService getSecurityService()
Specified by:
getSecurityService in interface ZIApplicationServiceRepository

getExceptionService

public ZIExceptionService getExceptionService()
Specified by:
getExceptionService in interface ZIApplicationServiceRepository

getMessageService

public ZIMessageService getMessageService()
Specified by:
getMessageService in interface ZIApplicationServiceRepository

getFormService

public ZIFormService getFormService()
Specified by:
getFormService in interface ZICoreServiceRepository


Copyright © 2011. All Rights Reserved.