org.apache.jetspeed.services.idgenerator
Class JetspeedIdGeneratorService
java.lang.Object
org.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
org.apache.jetspeed.services.idgenerator.JetspeedIdGeneratorService
- All Implemented Interfaces:
- IdGeneratorService, org.apache.turbine.services.Initable, org.apache.turbine.services.Service
- public class JetspeedIdGeneratorService
- extends org.apache.turbine.services.TurbineBaseService
- implements IdGeneratorService
Simple implementation of the IdGeneratorService.
- Version:
- $Id: JetspeedIdGeneratorService.java,v 1.5 2004/02/23 03:28:57 jford Exp $
- Author:
- Paul Spencer
Field Summary |
protected static long |
idCounter
|
Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, properties, serviceBroker |
Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
Method Summary |
java.lang.String |
getNextPeid()
Generate a Unique PEID |
void |
init()
This is the lateinitialization method called by the
Turbine Service framework |
void |
init(javax.servlet.ServletConfig conf)
This is the early initialization method called by the
Turbine Service framework |
void |
shutdown()
This is the shutdown method called by the
Turbine Service framework |
Methods inherited from class org.apache.turbine.services.TurbineBaseService |
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.Service |
getConfiguration, getName, getProperties, setName, setServiceBroker |
Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, setInitableBroker |
idCounter
protected static long idCounter
JetspeedIdGeneratorService
public JetspeedIdGeneratorService()
- Creates new JetspeedIdGeneratorService
init
public void init(javax.servlet.ServletConfig conf)
throws org.apache.turbine.services.InitializationException
- This is the early initialization method called by the
Turbine
Service
framework
- Parameters:
conf
- The ServletConfig
- Throws:
throws
- a InitializationException
if the service
fails to initialize
org.apache.turbine.services.InitializationException
init
public void init()
throws org.apache.turbine.services.InitializationException
- This is the lateinitialization method called by the
Turbine
Service
framework
- Specified by:
init
in interface org.apache.turbine.services.Initable
- Throws:
throws
- a InitializationException
if the service
fails to initialize
org.apache.turbine.services.InitializationException
shutdown
public void shutdown()
- This is the shutdown method called by the
Turbine
Service
framework
- Specified by:
shutdown
in interface org.apache.turbine.services.Initable
getNextPeid
public java.lang.String getNextPeid()
- Generate a Unique PEID
- Specified by:
getNextPeid
in interface IdGeneratorService
- Returns:
- Unique PEID
Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.