org.nuxeo.ecm.platform.ec.placeful
Class PlacefulServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.ec.placeful.PlacefulServiceImpl
- All Implemented Interfaces:
- PlacefulService, Adaptable, Component, Extensible
public class PlacefulServiceImpl
- extends DefaultComponent
- implements PlacefulService
- Author:
- Ruslan Spivak
Fields inherited from interface org.nuxeo.ecm.platform.ec.placeful.interfaces.PlacefulService |
ID |
Method Summary |
void |
deactivate(ComponentContext context)
Deactivates the component. |
List<Annotation> |
getAllAnnotations(EntityManager em,
String name)
|
List<Annotation> |
getAllAnnotations(String name)
|
Annotation |
getAnnotation(EntityManager em,
String id,
String name)
|
Annotation |
getAnnotation(String uuid,
String name)
|
List<Annotation> |
getAnnotationListByParamMap(EntityManager em,
Map<String,Object> paramMap,
String name)
|
List<Annotation> |
getAnnotationListByParamMap(Map<String,Object> paramMap,
String name)
|
Map<String,String> |
getAnnotationRegistry()
|
HibernateConfiguration |
getOrCreateHibernateConfiguration()
|
PersistenceProvider |
getOrCreatePersistenceProvider()
|
static String |
getShortName(String className)
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
|
void |
removeAnnotation(Annotation annotation)
|
void |
removeAnnotation(EntityManager em,
Annotation annotation)
|
void |
removeAnnotationListByParamMap(EntityManager em,
Map<String,Object> paramMap,
String name)
|
void |
removeAnnotationListByParamMap(Map<String,Object> paramMap,
String name)
|
void |
setAnnotation(Annotation annotation)
|
void |
setAnnotation(EntityManager em,
Annotation annotation)
|
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
|
PlacefulServiceImpl
public PlacefulServiceImpl()
getOrCreatePersistenceProvider
public PersistenceProvider getOrCreatePersistenceProvider()
getOrCreateHibernateConfiguration
public HibernateConfiguration getOrCreateHibernateConfiguration()
deactivate
public void deactivate(ComponentContext context)
throws Exception
- Description copied from interface:
Component
- Deactivates the component.
This method is called by the runtime when a component is deactivated.
- Specified by:
deactivate
in interface Component
- Overrides:
deactivate
in class DefaultComponent
- Parameters:
context
- the runtime context
- Throws:
Exception
- if an error occurs during activation
registerContribution
public void registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
throws Exception
- Overrides:
registerContribution
in class DefaultComponent
- Throws:
Exception
unregisterContribution
public void unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
throws Exception
- Overrides:
unregisterContribution
in class DefaultComponent
- Throws:
Exception
getAnnotationRegistry
public Map<String,String> getAnnotationRegistry()
- Specified by:
getAnnotationRegistry
in interface PlacefulService
getShortName
public static String getShortName(String className)
getAnnotation
public Annotation getAnnotation(EntityManager em,
String id,
String name)
getAllAnnotations
public List<Annotation> getAllAnnotations(EntityManager em,
String name)
getAllAnnotations
public List<Annotation> getAllAnnotations(String name)
getAnnotation
public Annotation getAnnotation(String uuid,
String name)
- Specified by:
getAnnotation
in interface PlacefulService
getAnnotationListByParamMap
public List<Annotation> getAnnotationListByParamMap(EntityManager em,
Map<String,Object> paramMap,
String name)
getAnnotationListByParamMap
public List<Annotation> getAnnotationListByParamMap(Map<String,Object> paramMap,
String name)
- Specified by:
getAnnotationListByParamMap
in interface PlacefulService
removeAnnotationListByParamMap
public void removeAnnotationListByParamMap(EntityManager em,
Map<String,Object> paramMap,
String name)
removeAnnotationListByParamMap
public void removeAnnotationListByParamMap(Map<String,Object> paramMap,
String name)
- Specified by:
removeAnnotationListByParamMap
in interface PlacefulService
setAnnotation
public void setAnnotation(EntityManager em,
Annotation annotation)
setAnnotation
public void setAnnotation(Annotation annotation)
- Specified by:
setAnnotation
in interface PlacefulService
removeAnnotation
public void removeAnnotation(EntityManager em,
Annotation annotation)
removeAnnotation
public void removeAnnotation(Annotation annotation)
- Specified by:
removeAnnotation
in interface PlacefulService
Copyright © 2011 Nuxeo SAS. All Rights Reserved.