Class OsgiIncidentService
java.lang.Object
org.opencastproject.serviceregistry.impl.AbstractIncidentService
org.opencastproject.serviceregistry.impl.OsgiIncidentService
- All Implemented Interfaces:
EventListener,IncidentService,org.osgi.framework.BundleListener
public class OsgiIncidentService
extends AbstractIncidentService
implements org.osgi.framework.BundleListener
-
Field Summary
FieldsFields inherited from class org.opencastproject.serviceregistry.impl.AbstractIncidentService
FIELD_DESCRIPTION, FIELD_TITLE, NO_DESCRIPTION, NO_TITLE, PERSISTENCE_UNIT_NAMEFields inherited from interface org.opencastproject.serviceregistry.api.IncidentService
JOB_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) OSGi callback on component activation.voidbundleChanged(org.osgi.framework.BundleEvent event) voidCloses entity manager factory.protected DBSessionprotected ServiceRegistryprotected WorkflowServicevoidsetDBSessionFactory(DBSessionFactory dbSessionFactory) protected voidsetServiceRegistry(ServiceRegistry serviceRegistry) Sets the service registryvoidsetWorkflowService(WorkflowService workflowService) Sets the workflow serviceMethods inherited from class org.opencastproject.serviceregistry.impl.AbstractIncidentService
genDbKeys, getIncident, getIncidentsOfJob, getIncidentsOfJob, getLocalization, localeToList, replaceVars, storeIncident
-
Field Details
-
INCIDENT_L10N_DIR
- See Also:
-
-
Constructor Details
-
OsgiIncidentService
public OsgiIncidentService()
-
-
Method Details
-
getServiceRegistry
- Specified by:
getServiceRegistryin classAbstractIncidentService
-
getWorkflowService
- Specified by:
getWorkflowServicein classAbstractIncidentService
-
getDBSession
- Specified by:
getDBSessionin classAbstractIncidentService
-
setServiceRegistry
Sets the service registry- Parameters:
serviceRegistry- the service registry
-
setWorkflowService
Sets the workflow service- Parameters:
workflowService- the workflow service
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) OSGi callback on component activation. -
deactivate
public void deactivate()Closes entity manager factory. -
setDBSessionFactory
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event) - Specified by:
bundleChangedin interfaceorg.osgi.framework.BundleListener
-