public abstract class BaseManagedServiceFactory<T> extends Object implements org.osgi.service.cm.ManagedServiceFactory
| Modifier and Type | Field and Description |
|---|---|
static int |
BUNDLE_STOPPING |
static int |
CONFIGURATION_ADMIN_OBJECT_DELETED |
static long |
DEFAULT_TIMEOUT_BEFORE_INTERRUPT |
static int |
INTERNAL_ERROR |
protected org.slf4j.Logger |
LOGGER |
| 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,
Dictionary properties,
int code) |
protected abstract T |
doUpdate(T t,
Dictionary properties) |
protected abstract String[] |
getExposedClasses(T t) |
String |
getName() |
Map<org.osgi.framework.ServiceRegistration,T> |
getServices() |
protected void |
postRegister(T t,
Dictionary properties,
org.osgi.framework.ServiceRegistration registration) |
protected void |
preUnregister(T t,
Dictionary properties,
org.osgi.framework.ServiceRegistration registration) |
void |
updated(String pid,
Dictionary properties) |
public static final long DEFAULT_TIMEOUT_BEFORE_INTERRUPT
public static final int CONFIGURATION_ADMIN_OBJECT_DELETED
public static final int BUNDLE_STOPPING
public static final int INTERNAL_ERROR
protected final org.slf4j.Logger LOGGER
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 abstract T doUpdate(T t, Dictionary properties) throws Exception
Exceptionprotected abstract void doDestroy(T t, Dictionary properties, int code) throws Exception
Exceptionprotected void postRegister(T t, Dictionary properties, org.osgi.framework.ServiceRegistration registration)
protected void preUnregister(T t, Dictionary properties, org.osgi.framework.ServiceRegistration registration)
public void destroy()
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.