/** * @param resourceLoader */ public PersistenceApiAbstraction(ResourceLoader resourceLoader) { super(resourceLoader); PERSISTENCE_CONTEXT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceContext"); PERSISTENCE_UNIT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceUnit"); PERSISTENCE_CONTEXT_TYPE_CLASS = classForName("javax.persistence.PersistenceContextType"); if (PERSISTENCE_CONTEXT_TYPE_CLASS.getClass().equals(Dummy.class)) { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = enumValue(PERSISTENCE_CONTEXT_TYPE_CLASS, "EXTENDED"); } else { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = DummyEnum.DUMMY_VALUE; } ENTITY_CLASS = annotationTypeForName("javax.persistence.Entity"); MAPPED_SUPERCLASS_CLASS = annotationTypeForName("javax.persistence.MappedSuperclass"); EMBEDDABLE_CLASS = annotationTypeForName("javax.persistence.Embeddable"); ENTITY_MANAGER_CLASS = classForName("javax.persistence.EntityManager"); ENTITY_MANAGER_FACTORY_CLASS = classForName("javax.persistence.EntityManagerFactory"); }
services.addAll(registry.entrySet()); services.add(PersistenceApiAbstraction.class, new PersistenceApiAbstraction(resourceLoader)); services.add(WSApiAbstraction.class, new WSApiAbstraction(resourceLoader)); services.add(InterceptorsApiAbstraction.class, new InterceptorsApiAbstraction(resourceLoader));
services.addAll(registry.entrySet()); services.add(PersistenceApiAbstraction.class, new PersistenceApiAbstraction(resourceLoader)); services.add(WSApiAbstraction.class, new WSApiAbstraction(resourceLoader)); services.add(InterceptorsApiAbstraction.class, new InterceptorsApiAbstraction(resourceLoader));
/** * @param resourceLoader */ public PersistenceApiAbstraction(ResourceLoader resourceLoader) { super(resourceLoader); PERSISTENCE_CONTEXT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceContext"); PERSISTENCE_UNIT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceUnit"); PERSISTENCE_CONTEXT_TYPE_CLASS = classForName("javax.persistence.PersistenceContextType"); if (PERSISTENCE_CONTEXT_TYPE_CLASS.getClass().equals(Dummy.class)) { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = enumValue(PERSISTENCE_CONTEXT_TYPE_CLASS, "EXTENDED"); } else { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = DummyEnum.DUMMY_VALUE; } ENTITY_CLASS = annotationTypeForName("javax.persistence.Entity"); MAPPED_SUPERCLASS_CLASS = annotationTypeForName("javax.persistence.MappedSuperclass"); EMBEDDABLE_CLASS = annotationTypeForName("javax.persistence.Embeddable"); ENTITY_MANAGER_CLASS = classForName("javax.persistence.EntityManager"); ENTITY_MANAGER_FACTORY_CLASS = classForName("javax.persistence.EntityManagerFactory"); }
services.addAll(registry.entrySet()); services.add(PersistenceApiAbstraction.class, new PersistenceApiAbstraction(resourceLoader)); services.add(WSApiAbstraction.class, new WSApiAbstraction(resourceLoader)); services.add(InterceptorsApiAbstraction.class, new InterceptorsApiAbstraction(resourceLoader));
/** * @param resourceLoader */ public PersistenceApiAbstraction(ResourceLoader resourceLoader) { super(resourceLoader); PERSISTENCE_CONTEXT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceContext"); PERSISTENCE_UNIT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceUnit"); PERSISTENCE_CONTEXT_TYPE_CLASS = classForName("javax.persistence.PersistenceContextType"); if (PERSISTENCE_CONTEXT_TYPE_CLASS.getClass().equals(Dummy.class)) { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = enumValue(PERSISTENCE_CONTEXT_TYPE_CLASS, "EXTENDED"); } else { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = DummyEnum.DUMMY_VALUE; } ENTITY_CLASS = annotationTypeForName("javax.persistence.Entity"); MAPPED_SUPERCLASS_CLASS = annotationTypeForName("javax.persistence.MappedSuperclass"); EMBEDDABLE_CLASS = annotationTypeForName("javax.persistence.Embeddable"); ENTITY_MANAGER_CLASS = classForName("javax.persistence.EntityManager"); ENTITY_MANAGER_FACTORY_CLASS = classForName("javax.persistence.EntityManagerFactory"); }
services.addAll(registry.entrySet()); services.add(PersistenceApiAbstraction.class, new PersistenceApiAbstraction(resourceLoader)); services.add(WSApiAbstraction.class, new WSApiAbstraction(resourceLoader)); services.add(InterceptorsApiAbstraction.class, new InterceptorsApiAbstraction(resourceLoader));
/** * @param resourceLoader */ public PersistenceApiAbstraction(ResourceLoader resourceLoader) { super(resourceLoader); PERSISTENCE_CONTEXT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceContext"); PERSISTENCE_UNIT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceUnit"); PERSISTENCE_CONTEXT_TYPE_CLASS = classForName("javax.persistence.PersistenceContextType"); if (PERSISTENCE_CONTEXT_TYPE_CLASS.getClass().equals(Dummy.class)) { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = enumValue(PERSISTENCE_CONTEXT_TYPE_CLASS, "EXTENDED"); } else { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = DummyEnum.DUMMY_VALUE; } ENTITY_CLASS = annotationTypeForName("javax.persistence.Entity"); MAPPED_SUPERCLASS_CLASS = annotationTypeForName("javax.persistence.MappedSuperclass"); EMBEDDABLE_CLASS = annotationTypeForName("javax.persistence.Embeddable"); ENTITY_MANAGER_CLASS = classForName("javax.persistence.EntityManager"); ENTITY_MANAGER_FACTORY_CLASS = classForName("javax.persistence.EntityManagerFactory"); }
services.addAll(registry.entrySet()); services.add(PersistenceApiAbstraction.class, new PersistenceApiAbstraction(resourceLoader)); services.add(WSApiAbstraction.class, new WSApiAbstraction(resourceLoader)); services.add(InterceptorsApiAbstraction.class, new InterceptorsApiAbstraction(resourceLoader));
/** * @param resourceLoader */ public PersistenceApiAbstraction(ResourceLoader resourceLoader) { super(resourceLoader); PERSISTENCE_CONTEXT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceContext"); PERSISTENCE_UNIT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceUnit"); PERSISTENCE_CONTEXT_TYPE_CLASS = classForName("javax.persistence.PersistenceContextType"); if (PERSISTENCE_CONTEXT_TYPE_CLASS.getClass().equals(Dummy.class)) { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = enumValue(PERSISTENCE_CONTEXT_TYPE_CLASS, "EXTENDED"); } else { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = DummyEnum.DUMMY_VALUE; } ENTITY_CLASS = annotationTypeForName("javax.persistence.Entity"); MAPPED_SUPERCLASS_CLASS = annotationTypeForName("javax.persistence.MappedSuperclass"); EMBEDDABLE_CLASS = annotationTypeForName("javax.persistence.Embeddable"); ENTITY_MANAGER_CLASS = classForName("javax.persistence.EntityManager"); ENTITY_MANAGER_FACTORY_CLASS = classForName("javax.persistence.EntityManagerFactory"); }
services.add(PersistenceApiAbstraction.class, new PersistenceApiAbstraction(resourceLoader)); services.add(WSApiAbstraction.class, new WSApiAbstraction(resourceLoader)); services.add(JtaApiAbstraction.class, new JtaApiAbstraction(resourceLoader));
/** * @param resourceLoader */ public PersistenceApiAbstraction(ResourceLoader resourceLoader) { super(resourceLoader); PERSISTENCE_CONTEXT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceContext"); PERSISTENCE_UNIT_ANNOTATION_CLASS = annotationTypeForName("javax.persistence.PersistenceUnit"); PERSISTENCE_CONTEXT_TYPE_CLASS = classForName("javax.persistence.PersistenceContextType"); if (PERSISTENCE_CONTEXT_TYPE_CLASS.getClass().equals(Dummy.class)) { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = enumValue(PERSISTENCE_CONTEXT_TYPE_CLASS, "EXTENDED"); } else { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = DummyEnum.DUMMY_VALUE; } ENTITY_CLASS = annotationTypeForName("javax.persistence.Entity"); MAPPED_SUPERCLASS_CLASS = annotationTypeForName("javax.persistence.MappedSuperclass"); EMBEDDABLE_CLASS = annotationTypeForName("javax.persistence.Embeddable"); ENTITY_MANAGER_CLASS = classForName("javax.persistence.EntityManager"); ENTITY_MANAGER_FACTORY_CLASS = classForName("javax.persistence.EntityManagerFactory"); }