net.sourceforge.blogentis.utils
Class BlogManagerService

java.lang.Object
  extended byorg.apache.turbine.services.BaseInitable
      extended byorg.apache.turbine.services.BaseService
          extended byorg.apache.turbine.services.TurbineBaseService
              extended bynet.sourceforge.blogentis.utils.BlogManagerService
All Implemented Interfaces:
org.apache.turbine.services.Initable, org.apache.turbine.services.Service

public class BlogManagerService
extends org.apache.turbine.services.TurbineBaseService

Keep a list of run-time blog instances.

Author:
abas

Field Summary
protected static java.util.Map byId
           
protected static java.util.Map byName
           
static java.lang.String SERVICE_NAME
           
 
Fields inherited from class org.apache.turbine.services.BaseService
configuration, name, serviceBroker
 
Fields inherited from class org.apache.turbine.services.BaseInitable
initableBroker, isInitialized
 
Constructor Summary
BlogManagerService()
           
 
Method Summary
static void clear()
           
static Blog getBlog(int id)
           
static Blog getBlog(java.lang.String name)
           
 void init(java.lang.Object ignored)
           
 void shutdown()
           
 
Methods inherited from class org.apache.turbine.services.TurbineBaseService
init, init, init
 
Methods inherited from class org.apache.turbine.services.BaseService
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker
 
Methods inherited from class org.apache.turbine.services.BaseInitable
getInit, getInitableBroker, setInit, setInitableBroker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.turbine.services.Initable
getInit, setInitableBroker
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
See Also:
Constant Field Values

byName

protected static java.util.Map byName

byId

protected static java.util.Map byId
Constructor Detail

BlogManagerService

public BlogManagerService()
Method Detail

init

public void init(java.lang.Object ignored)
          throws org.apache.turbine.services.InitializationException
Throws:
org.apache.turbine.services.InitializationException

shutdown

public void shutdown()

getBlog

public static Blog getBlog(java.lang.String name)
                    throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

getBlog

public static Blog getBlog(int id)
                    throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

clear

public static void clear()


Copyright © 2003-2004 SourceForge.net. All Rights Reserved.