org.codehaus.wadi.servicespace.basic
Class BasicServiceHolder

java.lang.Object
  extended by org.codehaus.wadi.servicespace.basic.BasicServiceHolder
All Implemented Interfaces:
Lifecycle, ServiceHolder

public class BasicServiceHolder
extends java.lang.Object
implements ServiceHolder

Version:
$Revision: 1538 $

Field Summary
protected  java.lang.Object service
           
protected  ServiceSpace serviceSpace
           
 
Constructor Summary
BasicServiceHolder(ServiceSpace serviceSpace, ServiceName serviceName, java.lang.Object service)
           
 
Method Summary
 java.lang.Object getService()
           
 boolean isStarted()
           
protected  void sendLifecycleEventToCluster(LifecycleState state)
           
 void start()
           
 void stop()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serviceSpace

protected final ServiceSpace serviceSpace

service

protected final java.lang.Object service
Constructor Detail

BasicServiceHolder

public BasicServiceHolder(ServiceSpace serviceSpace,
                          ServiceName serviceName,
                          java.lang.Object service)
Method Detail

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface Lifecycle
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface Lifecycle
Throws:
java.lang.Exception

isStarted

public boolean isStarted()
Specified by:
isStarted in interface ServiceHolder

getService

public java.lang.Object getService()
Specified by:
getService in interface ServiceHolder

sendLifecycleEventToCluster

protected void sendLifecycleEventToCluster(LifecycleState state)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.