com.openexchange.mail.osgi
Class MailProviderProxyGenerator

java.lang.Object
  extended by com.openexchange.mail.osgi.MailProviderProxyGenerator

public final class MailProviderProxyGenerator
extends java.lang.Object

MailProviderProxyGenerator - Generates proxy objects for mail provider which delegate method invocations to the service obtained from a bundle context

Author:
Thorben Betten

Method Summary
static MailProvider newMailProviderProxy(org.osgi.framework.ServiceReference mailProviderServiceReference, org.osgi.framework.BundleContext context)
          TODO: Does not work since MailProvider is not an interface
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newMailProviderProxy

public static MailProvider newMailProviderProxy(org.osgi.framework.ServiceReference mailProviderServiceReference,
                                                org.osgi.framework.BundleContext context)
TODO: Does not work since MailProvider is not an interface

Create a new proxy object for mail provider which delegates method invocations to the service obtained from bundle context

Parameters:
mailProviderServiceReference - The service reference of a mail provider
context - The bundle context (needed to get/unget the service)
Returns:
A new proxy object for mail provider