|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.associations.AssociationProxyUtil
public class AssociationProxyUtil
Utility for working with a dynamic proxies generated for associations
| Constructor Summary | |
|---|---|
AssociationProxyUtil()
|
|
| Method Summary | ||
|---|---|---|
static
|
getAssociation(T proxy)
Get the Association for the association proxy |
|
static
|
getFirst(T proxy)
Get the first associated service proxy |
|
static
|
getService(T proxy)
Get the associated service proxy from the ServiceSelectionStrategy |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AssociationProxyUtil()
| Method Detail |
|---|
public static <T> T getService(T proxy)
ServiceSelectionStrategy
proxy - The association proxy
ServiceSelectionStrategy that manages the collection of
associated services. If there are no services a null will be returned.
If the supplied proxy is not an instanceof
AssociationProxy (in other words not
a generated proxy), this method will return the supplied proxy..public static <T> T getFirst(T proxy)
proxy - The association proxy
AssociationProxy (in other words not
a generated proxy), this method will return the supplied proxy..public static <T> Association<T> getAssociation(T proxy)
Association for the association proxy
proxy - The association proxy
Association for the association
proxy. If the provided proxy is not an instanceof
AssociationProxy (in other words not
a generated proxy), this method will return null.
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||