|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Service
This interface defines a Service. Objects which implement this interface must have a public constructor with a string parameter which is the name of the service.
Method Summary | |
---|---|
String |
getName()
|
void |
init(Context ctx)
Deprecated. Replaced in favor of IoC. |
boolean |
isStarted()
|
void |
setName(String name)
Set the service's name. |
void |
start()
Start the service. |
void |
stop()
Stop the service. |
Method Detail |
---|
@Deprecated void init(Context ctx) throws ServiceException
ctx
- configuration of the service
ServiceException
- when init fails.void start() throws ServiceException
ServiceException
- when start fails.void stop() throws ServiceException
ServiceException
- when stop fails.boolean isStarted()
void setName(String name)
name
- the service's nameString getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |