org.eclipse.gemini.blueprint.service.importer.support.internal.aop
Interface ServiceProxyCreator
public interface ServiceProxyCreator
Simple interface passed around to decouple proxy creation (which is highly
contextual and configuration dependent) from the overall OSGi infrastructure
which is concerned with synchronization and events.
- Author:
- Costin Leau
createServiceProxy
ProxyPlusCallback createServiceProxy(org.osgi.framework.ServiceReference reference)
- Create a service proxy for the given service reference. The proxy purpose
is to transparently decouple the client from holding a strong reference
to the service (which might go away) and provide various decorations.
The method returns a container object with the proxy and a
destruction callback for it (normally an invocation interceptor). The
same functionality can be achieved by casting the proxy to Advised but
for security reasons (users could disable the proxies themselves) the
proxies are now created in an opaque manner.
- Parameters:
reference
- service reference
- Returns:
- the proxy plus a destruction callback to it
Copyright © 2006-2013. All Rights Reserved.