com.j2biz.blogunity
Class BlogunityManager

java.lang.Object
  extended bycom.j2biz.blogunity.BlogunityManager
All Implemented Interfaces:
EventListener, ServletContextListener

public class BlogunityManager
extends Object
implements ServletContextListener

Since:
0.1
Author:
michelson

Constructor Summary
BlogunityManager()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent e)
           
 void contextInitialized(ServletContextEvent e)
           
static String getBase()
          Returns base, that represents host-path followed by the name of the webapp-context.
static String getContextPath()
           
static String getHost()
          Returns the virtual host of the current installation. ( e.g.
static MailService getMailService()
           
static MQService getMqService()
           
static String getRealPath(String path)
          Delegetion to ServletContext's-method getRealPath().
static BlogunityRenderEngine getRenderEngine()
          Returns render engine.
static ServletContext getServletContext()
           
static Date getStartupTime()
          Returns the startup time of the current bloguntiy instance.
static SystemConfiguration getSystemConfiguration()
           
static void init()
           
static void setContextPath(String contextPath)
           
static void setHost(String host)
          Sets the host of the current installation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlogunityManager

public BlogunityManager()
Method Detail

contextInitialized

public void contextInitialized(ServletContextEvent e)
Specified by:
contextInitialized in interface ServletContextListener

init

public static final void init()
                       throws BlogunityException
Throws:
BlogunityException

getSystemConfiguration

public static SystemConfiguration getSystemConfiguration()
Returns:
Returns the blogunityConfiguration.

contextDestroyed

public void contextDestroyed(ServletContextEvent e)
Specified by:
contextDestroyed in interface ServletContextListener

getServletContext

public static ServletContext getServletContext()
Returns:
Returns the servletContext.

getContextPath

public static String getContextPath()
Returns:
Returns the contextPath.

setContextPath

public static void setContextPath(String contextPath)
Parameters:
contextPath - The contextPath to set.

getRealPath

public static String getRealPath(String path)
Delegetion to ServletContext's-method getRealPath(). Returns absolute filesystem path for the requested resource.

Parameters:
path -
Returns:

getStartupTime

public static Date getStartupTime()
Returns the startup time of the current bloguntiy instance.

Returns:

setHost

public static void setHost(String host)
Sets the host of the current installation.

Parameters:
host -

getHost

public static String getHost()
Returns the virtual host of the current installation. ( e.g. http://www.mysite.com)

Returns:
host.

getBase

public static String getBase()
Returns base, that represents host-path followed by the name of the webapp-context. E.g. if host=http://www.mysite.com and context=/blogunity, than the returned value of the base will be: base=http://www.mysite.com/blogunity

Returns:

getRenderEngine

public static BlogunityRenderEngine getRenderEngine()
Returns render engine.

Returns:

getMqService

public static MQService getMqService()

getMailService

public static MailService getMailService()


Copyright (c)j2biz.com