|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.api.types.AgreementDelegator org.ogf.graap.wsag.server.api.impl.PendingAgreementFacade
public class PendingAgreementFacade
PendingAgreementFacade
Constructor Summary | |
---|---|
PendingAgreementFacade(AgreementOffer offer,
AgreementFactory factory,
PendingAgreementListener listener,
Map<String,Object> context)
Implementation of a pending agreement facade. |
Method Summary | |
---|---|
void |
addObserver(Observer o)
Adds a new observer to an agreement that gets notified of agreement state changes. |
int |
countObservers()
|
void |
deleteObserver(Observer o)
|
void |
deleteObservers()
|
boolean |
hasChanged()
Returns true if the content of the agreement has changed, otherwise false. |
void |
notifyObservers()
|
void |
notifyObservers(Object arg)
Notifies all registered observer of an agreement's state change. |
void |
run()
|
void |
update(Observable o,
Object arg)
|
Methods inherited from class org.ogf.graap.wsag.api.types.AgreementDelegator |
---|
getAgreementId, getContext, getDelegator, getExecutionContext, getGuaranteeTermStates, getImplementationClass, getName, getServiceTermStates, getState, getTerms, getTransientExecutionContext, getXMLObject, notifyReload, setAgreementId, setContext, setDelegator, setGuaranteeTermStates, setName, setServiceTermStates, setState, setTerms, setXmlObject, terminate, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PendingAgreementFacade(AgreementOffer offer, AgreementFactory factory, PendingAgreementListener listener, Map<String,Object> context)
offer
- the agreement offerfactory
- the agreement factorylistener
- the agreement acceptance clientcontext
- the factory invocation contextMethod Detail |
---|
public boolean hasChanged()
AgreementDelegator
hasChanged
in interface Agreement
hasChanged
in class AgreementDelegator
Observable.hasChanged()
public void addObserver(Observer o)
AgreementDelegator
addObserver
in interface Agreement
addObserver
in class AgreementDelegator
o
- Observable.addObserver(java.util.Observer)
public void deleteObserver(Observer o)
o
- Observable.deleteObserver(java.util.Observer)
public void notifyObservers()
AgreementDelegator
notifyObservers
in interface Agreement
notifyObservers
in class AgreementDelegator
Observable.notifyObservers()
public void notifyObservers(Object arg)
AgreementDelegator
notifyObservers
in interface Agreement
notifyObservers
in class AgreementDelegator
arg
- Observable.notifyObservers(java.lang.Object)
public void deleteObservers()
Observable.deleteObservers()
public int countObservers()
Observable.countObservers()
public void run()
run
in interface Runnable
Runnable.run()
public void update(Observable o, Object arg)
update
in interface Observer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |