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.ManagedServiceFactorypublic void updated(String pid, Dictionary properties) throws org.osgi.service.cm.ConfigurationException
updated in interface org.osgi.service.cm.ManagedServiceFactoryorg.osgi.service.cm.ConfigurationExceptionpublic void deleted(String pid)
deleted in interface org.osgi.service.cm.ManagedServiceFactoryprotected void checkConfiguration(String pid, Dictionary properties) throws org.osgi.service.cm.ConfigurationException
org.osgi.service.cm.ConfigurationExceptionprotected abstract T doCreate(Dictionary properties) throws Exception
Exceptionprotected T doUpdate(T t, Dictionary properties) throws Exception
Exceptionpublic void destroy()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.