org.jboss.shotoku.service
Class ShotokuServiceImpl

java.lang.Object
  extended by org.jboss.shotoku.service.AdministratedServiceImpl
      extended by org.jboss.shotoku.service.ShotokuServiceImpl
All Implemented Interfaces:
AdministratedService, ShotokuService, ShotokuServiceLocal

public class ShotokuServiceImpl
extends AdministratedServiceImpl
implements ShotokuService, ShotokuServiceLocal

Author:
Adam Warski (adamw@aster.pl)

Constructor Summary
ShotokuServiceImpl()
           
 
Method Summary
 void addAdministratedService(AdministratedServiceGetter asg)
           
 void create()
           
 void destroy()
           
 java.lang.Object get(java.lang.Object key)
           
 java.util.Set<AdministratedServiceGetter> getAdministratedServices()
           
 java.lang.String getNextKeyBase()
          Gets a next unique key base for a shotoku cache item.
 java.lang.String getServiceDescription()
           
 java.lang.String getServiceId()
           
 AdministratedService getServiceInstance()
           
 java.lang.String getServiceName()
           
 void put(java.lang.Object key, java.lang.Object o)
           
 void register(ShotokuCacheItem cacheItem)
           
 void remove(java.lang.Object key)
           
 void start()
           
 void update()
           
 
Methods inherited from class org.jboss.shotoku.service.AdministratedServiceImpl
afterCreate, afterDestroy, afterStart, getLastUpdate, getLastUpdateDate, getServiceRunnable, getTimerInterval, setLastUpdate, setServiceRunnable, setTimerInterval, startUpdateThread, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.shotoku.service.AdministratedService
getLastUpdate, getLastUpdateDate, getServiceRunnable, setLastUpdate, setServiceRunnable, stop
 

Constructor Detail

ShotokuServiceImpl

public ShotokuServiceImpl()
Method Detail

create

public void create()
            throws java.lang.Exception
Specified by:
create in interface AdministratedService
Overrides:
create in class AdministratedServiceImpl
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface AdministratedService
Overrides:
start in class AdministratedServiceImpl
Throws:
java.lang.Exception

destroy

public void destroy()
Specified by:
destroy in interface AdministratedService
Overrides:
destroy in class AdministratedServiceImpl

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface ShotokuService

put

public void put(java.lang.Object key,
                java.lang.Object o)
Specified by:
put in interface ShotokuService

remove

public void remove(java.lang.Object key)
Specified by:
remove in interface ShotokuService

register

public void register(ShotokuCacheItem cacheItem)
Specified by:
register in interface ShotokuService

getNextKeyBase

public java.lang.String getNextKeyBase()
Description copied from interface: ShotokuService
Gets a next unique key base for a shotoku cache item.

Specified by:
getNextKeyBase in interface ShotokuService

update

public void update()
Specified by:
update in interface AdministratedService

getServiceInstance

public AdministratedService getServiceInstance()
Specified by:
getServiceInstance in interface AdministratedService

getServiceId

public java.lang.String getServiceId()
Specified by:
getServiceId in interface AdministratedService

getServiceName

public java.lang.String getServiceName()
Specified by:
getServiceName in interface AdministratedService

getServiceDescription

public java.lang.String getServiceDescription()
Specified by:
getServiceDescription in interface AdministratedService

addAdministratedService

public void addAdministratedService(AdministratedServiceGetter asg)
Specified by:
addAdministratedService in interface ShotokuService

getAdministratedServices

public java.util.Set<AdministratedServiceGetter> getAdministratedServices()
Specified by:
getAdministratedServices in interface ShotokuService


Copyright © -2006 . All Rights Reserved.