public abstract class BaseManagedServiceFactory<T> extends Object implements org.osgi.service.cm.ManagedServiceFactory
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_TIMEOUT_BEFORE_INTERRUPT |
Constructor and Description |
---|
BaseManagedServiceFactory(org.osgi.framework.BundleContext context,
String name) |
BaseManagedServiceFactory(org.osgi.framework.BundleContext context,
String name,
long timeoutBeforeInterrupt) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkConfiguration(String pid,
Dictionary properties) |
void |
deleted(String pid) |
void |
destroy() |
protected abstract T |
doCreate(Dictionary properties) |
protected abstract void |
doDestroy(T t) |
protected T |
doUpdate(T t,
Dictionary properties) |
protected abstract String[] |
getExposedClasses(T t) |
String |
getName() |
protected abstract void |
info(String message,
Throwable t) |
void |
updated(String pid,
Dictionary properties) |
protected abstract void |
warn(String message,
Throwable t) |
public static final long DEFAULT_TIMEOUT_BEFORE_INTERRUPT
public BaseManagedServiceFactory(org.osgi.framework.BundleContext context, String name)
public BaseManagedServiceFactory(org.osgi.framework.BundleContext context, String name, long timeoutBeforeInterrupt)
public String getName()
getName
in interface org.osgi.service.cm.ManagedServiceFactory
public void updated(String pid, Dictionary properties) throws org.osgi.service.cm.ConfigurationException
updated
in interface org.osgi.service.cm.ManagedServiceFactory
org.osgi.service.cm.ConfigurationException
public void deleted(String pid)
deleted
in interface org.osgi.service.cm.ManagedServiceFactory
protected void checkConfiguration(String pid, Dictionary properties) throws org.osgi.service.cm.ConfigurationException
org.osgi.service.cm.ConfigurationException
protected abstract T doCreate(Dictionary properties) throws Exception
Exception
protected T doUpdate(T t, Dictionary properties) throws Exception
Exception
public void destroy()
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.