|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AssociationProxy<T>
Methods that dynamic proxies created for associated services must implement in order to interface with association management.
| Method Summary | |
|---|---|
Association |
getAssociation()
Get the association |
net.sf.cglib.proxy.CallbackFilter |
getCallbackFilter(Association<T> association)
Create a CallbackFilter |
net.sf.cglib.proxy.Callback[] |
getCallbacks(Association<T> association)
Create an array of Callback |
net.sf.cglib.proxy.Dispatcher |
getDispatcher(Association<T> association)
Create a Dispatcher |
long |
getInvocationCount()
Get the number of times the associated service(s) were invoked using this proxy |
InvocationHandler |
getInvocationHandler(Association<T> association)
Create an InvocationHandler |
ServiceSelectionStrategy<T> |
getServiceSelectionStrategy()
Get the strategy for selecting services |
Class |
getSuperClass()
Get the super-class when creating a concrete CGLIB proxy |
void |
setProxyInterfaces(Class[] classes)
Set the classes the proxy will support |
void |
setServiceSelectionStrategy(ServiceSelectionStrategy<T> strategy)
Set the strategy for selecting services |
void |
terminate()
Clean up any resources allocated |
| Methods inherited from interface org.rioproject.associations.AssociationListener |
|---|
broken, changed, discovered |
| Method Detail |
|---|
Association getAssociation()
InvocationHandler getInvocationHandler(Association<T> association)
association - The Association to use
net.sf.cglib.proxy.Callback[] getCallbacks(Association<T> association)
Callback
association - The Association to use
Callback for use with a
generated CGLIB proxy.net.sf.cglib.proxy.CallbackFilter getCallbackFilter(Association<T> association)
CallbackFilter
association - The Association to use
CallbackFilter for use
with a generated CGLIB proxy.net.sf.cglib.proxy.Dispatcher getDispatcher(Association<T> association)
Dispatcher
association - The Association to use
Dispatcher for use with a generated
CGLIB proxy.Class getSuperClass()
void setServiceSelectionStrategy(ServiceSelectionStrategy<T> strategy)
strategy - The ServiceSelectionStrategy. Must not be null.ServiceSelectionStrategy<T> getServiceSelectionStrategy()
ServiceSelectionStrategy.void setProxyInterfaces(Class[] classes)
classes - Array of interface classeslong getInvocationCount()
void terminate()
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||