public class OSGIPersistenceUnitAnnotationBeanPostProcessor extends AbstractOSGIAnnotationBeanPostProcessor<javax.persistence.PersistenceUnit>
EntityManagerFactory
if an method is marked with the PersistenceUnit
annotationbeanFactory, DEFAULT_TIMEOUT
Constructor and Description |
---|
OSGIPersistenceUnitAnnotationBeanPostProcessor() |
Modifier and Type | Method and Description |
---|---|
protected Class<javax.persistence.PersistenceUnit> |
getAnnotation()
Return the class of the
Annotation |
protected Object |
getBeanFromFactory(javax.persistence.PersistenceUnit a,
Class<?> clazz)
Return the Bean lookup-ed from the
BeanFactory . |
protected String |
getFilter(javax.persistence.PersistenceUnit a)
Return the filter which should get used to lookup the service in the osgi registry.
|
postProcessAfterInitialization, postProcessPropertyValues, setBeanClassLoader, setBeanFactory, setBundleContext, setLookupBeanFactory, setTimeout
public OSGIPersistenceUnitAnnotationBeanPostProcessor()
protected Class<javax.persistence.PersistenceUnit> getAnnotation()
AbstractOSGIAnnotationBeanPostProcessor
Annotation
getAnnotation
in class AbstractOSGIAnnotationBeanPostProcessor<javax.persistence.PersistenceUnit>
protected String getFilter(javax.persistence.PersistenceUnit a)
AbstractOSGIAnnotationBeanPostProcessor
getFilter
in class AbstractOSGIAnnotationBeanPostProcessor<javax.persistence.PersistenceUnit>
protected Object getBeanFromFactory(javax.persistence.PersistenceUnit a, Class<?> clazz)
AbstractOSGIAnnotationBeanPostProcessor
BeanFactory
. If non can be found just return nullgetBeanFromFactory
in class AbstractOSGIAnnotationBeanPostProcessor<javax.persistence.PersistenceUnit>
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.