Package org.oddjob.arooa.life
Interface ComponentProxyResolver
- All Known Implementing Classes:
BusComponentResolver,OddjobComponentResolver
public interface ComponentProxyResolver
Used to resolve an object into a proxy for that object. This allows
Oddjob to wrap a Runnable as something with State and an Icon - amongst
other things.
- Author:
- rob
-
Method Summary
Modifier and TypeMethodDescriptionresolve(Object object, ArooaSession session) Possibly create a proxy for a given component.restore(Object proxy, ArooaSession session) Restore what is possibly a proxy to provide the original component.
-
Method Details
-
resolve
Possibly create a proxy for a given component.- Parameters:
object- The object to possibly proxy.session- A session.- Returns:
- The proxy, or the original object.
-
restore
Restore what is possibly a proxy to provide the original component.- Parameters:
proxy- Possbily the proxy.session- A session.- Returns:
- The component being proxied.
-