public abstract class Factory<T>
extends java.lang.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(java.util.Dictionary properties) |
void |
delete() |
protected abstract T |
doCreate(java.util.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(java.util.Dictionary properties) throws org.osgi.service.cm.ConfigurationException
org.osgi.service.cm.ConfigurationException
protected abstract T doCreate(java.util.Dictionary properties) throws java.lang.Exception
java.lang.Exception
public void delete()
protected abstract void doDelete(T service) throws java.lang.Exception
java.lang.Exception
Copyright © 2014 Red Hat. All Rights Reserved.