|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractService
public abstract class AbstractService
Abstract implementation of Service.
modules/library/main (gt2-main.jar) (Maven report) (SVN head)| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface Resolve |
|---|
Resolve.Status |
| Field Summary | |
|---|---|
protected static Logger |
logger
Logger |
| Constructor Summary | |
|---|---|
AbstractService(Catalog parent)
Creates a new service handle contained within a catalog. |
|
AbstractService(Catalog parent,
Map params)
Creates a new service handle contained within a catalog, with a set of connection paramters. |
|
| Method Summary | |
|---|---|
void |
addListener(ResolveChangeListener listener)
This method does nothing. |
boolean |
equals(Object other)
This should represent the identifier |
void |
fire(ResolveChangeEvent event)
This method does nothing. |
Map |
getConnectionParams()
Accessor to the set of params used to create this entry. |
protected List |
getMembers()
|
Throwable |
getMessage()
In the event that an error occurs during a resolve, that error can be reported back with this method. |
Resolve.Status |
getStatus()
Default implementation of getStatus. |
int |
hashCode()
This should represent the identified |
Resolve |
parent(ProgressListener monitor)
Blocking method which resolves this instance into its parent. |
void |
removeListener(ResolveChangeListener listener)
This method does nothing. |
protected void |
setConnectionParams(Map params)
Sets the connection params for the service handle. |
protected void |
setMembers(List members)
Sets the cached value of the members of the service. |
protected void |
setMessage(Throwable msg)
Sets the cached error message. |
String |
toString()
Indicate class and id. |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface Service |
|---|
getInfo, members, resolve |
| Methods inherited from interface Resolve |
|---|
canResolve, getIdentifier |
| Field Detail |
|---|
protected static Logger logger
| Constructor Detail |
|---|
public AbstractService(Catalog parent)
parent - The catalog containg the service.
public AbstractService(Catalog parent,
Map params)
parent - The catalog containing the service.params - The connection params used to connect to the service.| Method Detail |
|---|
public Resolve parent(ProgressListener monitor)
Resolve
parent in interface Resolvemonitor - Progress monitor for blocking call.
public Map getConnectionParams()
Service
getConnectionParams in interface ServiceServiceFinderprotected void setConnectionParams(Map params)
params - Map of connection paramters.protected void setMembers(List members)
members - List of GeoResource.protected List getMembers()
public Throwable getMessage()
ResolveResolve.getStatus() returns Resolve.Status.BROKEN, otherwise it
return null.
getMessage in interface ResolveResolve.Statusprotected void setMessage(Throwable msg)
msg - An exception which occured when connecting to the service.public Resolve.Status getStatus()
The following rules are used to determine the status:
msg is non-null, then the service handle is
Status#BROKEN.
members is non-null then the
service handle is Status#CONNECTED
Status#NOTCONNECTED.
Subclasses can control this method by setting the members msg
and members with setMessage(Throwable) and
setMembers(List) respectivley. Or subclasses may wish to
override this method entirley.
getStatus in interface ResolveResolve.Status.BROKEN,Resolve.Status.CONNECTED, or
Resolve.Status.NOTCONNECTED.public final boolean equals(Object other)
equals in class Objectother - Object.equals(java.lang.Object)public void addListener(ResolveChangeListener listener)
addListener in interface Resolvelistener - DOCUMENT ME!public void removeListener(ResolveChangeListener listener)
removeListener in interface Resolvelistener - DOCUMENT ME!public void fire(ResolveChangeEvent event)
fire in interface Resolveevent - DOCUMENT ME!public final int hashCode()
hashCode in class ObjectObject.hashCode()public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||