public abstract class BaseManagedServiceFactory<T>
extends java.lang.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,
java.lang.String name) |
BaseManagedServiceFactory(org.osgi.framework.BundleContext context,
java.lang.String name,
long timeoutBeforeInterrupt) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkConfiguration(java.lang.String pid,
java.util.Dictionary properties) |
void |
deleted(java.lang.String pid) |
void |
destroy() |
protected abstract T |
doCreate(java.util.Dictionary properties) |
protected abstract void |
doDestroy(T t,
java.util.Dictionary properties,
int code) |
protected abstract T |
doUpdate(T t,
java.util.Dictionary properties) |
protected abstract java.lang.String[] |
getExposedClasses(T t) |
java.lang.String |
getName() |
java.util.Map<org.osgi.framework.ServiceRegistration,T> |
getServices() |
protected void |
postRegister(T t,
java.util.Dictionary properties,
org.osgi.framework.ServiceRegistration registration) |
protected void |
preUnregister(T t,
java.util.Dictionary properties,
org.osgi.framework.ServiceRegistration registration) |
void |
updated(java.lang.String pid,
java.util.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,
java.lang.String name)
public BaseManagedServiceFactory(org.osgi.framework.BundleContext context,
java.lang.String name,
long timeoutBeforeInterrupt)
public java.lang.String getName()
getName in interface org.osgi.service.cm.ManagedServiceFactorypublic java.util.Map<org.osgi.framework.ServiceRegistration,T> getServices()
public void updated(java.lang.String pid,
java.util.Dictionary properties)
throws org.osgi.service.cm.ConfigurationException
updated in interface org.osgi.service.cm.ManagedServiceFactoryorg.osgi.service.cm.ConfigurationExceptionpublic void deleted(java.lang.String pid)
deleted in interface org.osgi.service.cm.ManagedServiceFactoryprotected void checkConfiguration(java.lang.String pid,
java.util.Dictionary properties)
throws org.osgi.service.cm.ConfigurationException
org.osgi.service.cm.ConfigurationExceptionprotected abstract T doCreate(java.util.Dictionary properties) throws java.lang.Exception
java.lang.Exceptionprotected abstract T doUpdate(T t, java.util.Dictionary properties) throws java.lang.Exception
java.lang.Exceptionprotected abstract void doDestroy(T t, java.util.Dictionary properties, int code) throws java.lang.Exception
java.lang.Exceptionprotected abstract java.lang.String[] getExposedClasses(T t)
protected void postRegister(T t, java.util.Dictionary properties, org.osgi.framework.ServiceRegistration registration)
protected void preUnregister(T t, java.util.Dictionary properties, org.osgi.framework.ServiceRegistration registration)
public void destroy()
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.