|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.soto.ServiceMetaData
public class ServiceMetaData
Holds meta information about a given service.
Service| Constructor Summary | |
|---|---|
ServiceMetaData(String id,
Object service)
|
|
ServiceMetaData(String id,
Object service,
List layers)
|
|
| Method Summary | |
|---|---|
void |
addAttribute(Attribute attr)
|
Attribute |
getAttribute(String name)
|
Collection |
getAttributes()
|
Object |
getService()
Returns this instance's associated service. |
String |
getServiceID()
Returns the identifier of the service to which this instance corresponds. |
void |
init()
Calls the init() method of this instance's service. |
boolean |
isInit()
|
boolean |
isStarted()
|
void |
setDisposeMethod(MethodConfig dispose)
|
void |
setInitMethod(MethodConfig init)
|
void |
setService(Object obj)
Sets this instance's service. |
void |
setStartMethod(MethodConfig start)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceMetaData(String id,
Object service)
public ServiceMetaData(String id,
Object service,
List layers)
| Method Detail |
|---|
public String getServiceID()
null if the service to
which this instance corresponds is an "anonymous" service (it has
no ID).public void setService(Object obj)
WARNING : in general, this method should not be called by client applications.
obj - a service instance.Servicepublic Object getService()
public Collection getAttributes()
Collection of Attribute of this instance.public Attribute getAttribute(String name)
name - the name of the desired attribute.
Attribute corresponding to the given name, or
Null if no such attribute exists.public void addAttribute(Attribute attr)
attr - an Attribute.public boolean isInit()
true if the service corresponding
to this instance has had its init() method called.public boolean isStarted()
true if the service corresponding
to this instance has had its start() method called.
public void init()
throws Exception
init() method of this instance's service.
Exception - if a problem occurs performing this instance's
service initialization.public void setInitMethod(MethodConfig init)
public void setStartMethod(MethodConfig start)
public void setDisposeMethod(MethodConfig dispose)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||