|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.associations.strategy.AbstractServiceSelectionStrategy<T>
public abstract class AbstractServiceSelectionStrategy<T>
Boilerplate implementation of the
ServiceSelectionStrategy.
| Field Summary | |
|---|---|
protected Association<T> |
association
|
| Constructor Summary | |
|---|---|
AbstractServiceSelectionStrategy()
|
|
| Method Summary | |
|---|---|
void |
broken(Association<T> association,
T service)
Notify the AssociationListener that an Association is broken. |
void |
changed(Association<T> association,
T service)
Notify the AssociationListener that a service endpoint has changed |
void |
discovered(Association<T> association,
T service)
Notify the AssociationListener that an Association has been discovered |
Association<T> |
getAssociation()
Get the association set to the strategy |
abstract T |
getService()
Select a service for invocation |
void |
setAssociation(Association<T> association)
Set the association |
void |
terminate()
Clean up any resources allocated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Association<T> association
| Constructor Detail |
|---|
public AbstractServiceSelectionStrategy()
| Method Detail |
|---|
public void setAssociation(Association<T> association)
ServiceSelectionStrategy
setAssociation in interface ServiceSelectionStrategy<T>association - The associationpublic Association<T> getAssociation()
ServiceSelectionStrategy
getAssociation in interface ServiceSelectionStrategy<T>public abstract T getService()
ServiceSelectionStrategy
getService in interface ServiceSelectionStrategy<T>public void terminate()
ServiceSelectionStrategy
terminate in interface ServiceSelectionStrategy<T>
public void discovered(Association<T> association,
T service)
AssociationListener
discovered in interface AssociationListener<T>association - The Associationservice - The associated service that has been discovered
public void changed(Association<T> association,
T service)
AssociationListener
changed in interface AssociationListener<T>association - The Associationservice - The service that was removed, changing the endpoint
public void broken(Association<T> association,
T service)
AssociationListener
broken in interface AssociationListener<T>association - The Association.service - The service that was removed, causing the Association to
be broken
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||