public abstract class Factory<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.osgi.framework.BundleContext |
bundleContext |
protected org.osgi.framework.ServiceRegistration |
registration |
protected T |
service |
| Constructor and Description |
|---|
Factory() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(Dictionary properties) |
void |
delete() |
protected abstract T |
doCreate(Dictionary properties) |
protected abstract void |
doDelete(T service) |
org.osgi.framework.BundleContext |
getBundleContext() |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
protected org.osgi.framework.BundleContext bundleContext
protected T service
protected org.osgi.framework.ServiceRegistration registration
public org.osgi.framework.BundleContext getBundleContext()
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public void create(Dictionary properties) throws org.osgi.service.cm.ConfigurationException
org.osgi.service.cm.ConfigurationExceptionprotected abstract T doCreate(Dictionary properties) throws Exception
Exceptionpublic void delete()
Copyright © 2011–2014 Red Hat. All rights reserved.