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, setTimeoutpublic OSGIPersistenceUnitAnnotationBeanPostProcessor()
protected Class<javax.persistence.PersistenceUnit> getAnnotation()
AbstractOSGIAnnotationBeanPostProcessorAnnotationgetAnnotation in class AbstractOSGIAnnotationBeanPostProcessor<javax.persistence.PersistenceUnit>protected String getFilter(javax.persistence.PersistenceUnit a)
AbstractOSGIAnnotationBeanPostProcessorgetFilter in class AbstractOSGIAnnotationBeanPostProcessor<javax.persistence.PersistenceUnit>protected Object getBeanFromFactory(javax.persistence.PersistenceUnit a, Class<?> clazz)
AbstractOSGIAnnotationBeanPostProcessorBeanFactory. If non can be found just return nullgetBeanFromFactory in class AbstractOSGIAnnotationBeanPostProcessor<javax.persistence.PersistenceUnit>Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.