org.apache.felix.utils.service
Class BaseManagedServiceFactory<T>
java.lang.Object
org.apache.felix.utils.service.BaseManagedServiceFactory<T>
- All Implemented Interfaces:
- org.osgi.service.cm.ManagedServiceFactory
public abstract class BaseManagedServiceFactory<T>
- extends java.lang.Object
- implements org.osgi.service.cm.ManagedServiceFactory
|
Method Summary |
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)
|
protected T |
doUpdate(T t,
java.util.Dictionary properties)
|
protected abstract java.lang.String[] |
getExposedClasses(T t)
|
java.lang.String |
getName()
|
protected abstract void |
info(java.lang.String message,
java.lang.Throwable t)
|
void |
updated(java.lang.String pid,
java.util.Dictionary properties)
|
protected abstract void |
warn(java.lang.String message,
java.lang.Throwable t)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_TIMEOUT_BEFORE_INTERRUPT
public static final long DEFAULT_TIMEOUT_BEFORE_INTERRUPT
- See Also:
- Constant Field Values
BaseManagedServiceFactory
public BaseManagedServiceFactory(org.osgi.framework.BundleContext context,
java.lang.String name)
BaseManagedServiceFactory
public BaseManagedServiceFactory(org.osgi.framework.BundleContext context,
java.lang.String name,
long timeoutBeforeInterrupt)
getName
public java.lang.String getName()
- Specified by:
getName in interface org.osgi.service.cm.ManagedServiceFactory
updated
public void updated(java.lang.String pid,
java.util.Dictionary properties)
throws org.osgi.service.cm.ConfigurationException
- Specified by:
updated in interface org.osgi.service.cm.ManagedServiceFactory
- Throws:
org.osgi.service.cm.ConfigurationException
deleted
public void deleted(java.lang.String pid)
- Specified by:
deleted in interface org.osgi.service.cm.ManagedServiceFactory
checkConfiguration
protected void checkConfiguration(java.lang.String pid,
java.util.Dictionary properties)
throws org.osgi.service.cm.ConfigurationException
- Throws:
org.osgi.service.cm.ConfigurationException
doCreate
protected abstract T doCreate(java.util.Dictionary properties)
throws java.lang.Exception
- Throws:
java.lang.Exception
doUpdate
protected T doUpdate(T t,
java.util.Dictionary properties)
throws java.lang.Exception
- Throws:
java.lang.Exception
doDestroy
protected abstract void doDestroy(T t)
throws java.lang.Exception
- Throws:
java.lang.Exception
getExposedClasses
protected abstract java.lang.String[] getExposedClasses(T t)
warn
protected abstract void warn(java.lang.String message,
java.lang.Throwable t)
info
protected abstract void info(java.lang.String message,
java.lang.Throwable t)
destroy
public void destroy()
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.