Package org.jboss.arquillian.persistence.core.metadata

Examples of org.jboss.arquillian.persistence.core.metadata.PersistenceExtensionEnabler


        private final ThreadLocal<Boolean> active = new ThreadLocal<Boolean>();

        public void before(@Observes final BeforeStep event) {
            final MetadataExtractor extractor = new MetadataExtractor(event.getTestClass());
            final boolean isActive = new PersistenceExtensionEnabler(extractor).shouldPersistenceExtensionBeActivated();
            active.set(isActive);

            if (isActive) {
                final PersistenceConfiguration persistenceConfiguration = configurationInstance.get();
                persistenceExtensionFeatureResolverProvider.set(new PersistenceExtensionFeatureResolver(event.getTestMethod(), extractor, persistenceConfiguration));
View Full Code Here


   @Override
   public void process(Archive<?> applicationArchive, TestClass testClass)
   {

      final PersistenceExtensionEnabler persistenceExtensionEnabler = new PersistenceExtensionEnabler(testClass);
      if (!persistenceExtensionEnabler.shouldPersistenceExtensionBeActivated())
      {
         return;
      }

      addCustomColumnFilters(applicationArchive, testClass);
View Full Code Here

   @Override
   public void process(Archive<?> applicationArchive, TestClass testClass)
   {

      final PersistenceExtensionEnabler persistenceExtensionEnabler = new PersistenceExtensionEnabler(testClass);
      if (!persistenceExtensionEnabler.shouldPersistenceExtensionBeActivated())
      {
         return;
      }
      final JavaArchive additionalPersistenceResources = ShrinkWrap.create(JavaArchive.class, "arquillian-persistence-dbunit-additional-resources.jar");
      merge(additionalPersistenceResources, dbUnitConfigurationSerializedAsProperties());
View Full Code Here

   @Override
   public void process(Archive<?> applicationArchive, TestClass testClass)
   {

      final PersistenceExtensionEnabler persistenceExtensionEnabler = new PersistenceExtensionEnabler(testClass);
      if (!persistenceExtensionEnabler.shouldPersistenceExtensionBeActivated())
      {
         return;
      }
      obtainDataSourceFromPersistenceXml(applicationArchive);
      final JavaArchive additionalPersistenceResources = ShrinkWrap.create(JavaArchive.class, "arquillian-persistence-extension-additional-resources.jar");
View Full Code Here

   private Event<BeforePersistenceClass> beforePersistenceClassEvent;

   public void beforeClass(@Observes BeforeClass beforeClass)
   {
      metadataExtractorProducer.set(new MetadataExtractor(beforeClass.getTestClass()));
      persistenceExtensionEnabler.set(new PersistenceExtensionEnabler(metadataExtractorProducer.get()));
      if (persistenceExtensionEnabler.get().shouldPersistenceExtensionBeActivated())
      {
         initializeConfigurationEvent.fire(new InitializeConfiguration());
         beforePersistenceClassEvent.fire(new BeforePersistenceClass(beforeClass.getTestClass()));
      }
View Full Code Here

   @Override
   public void process(Archive<?> applicationArchive, TestClass testClass)
   {

      final PersistenceExtensionEnabler persistenceExtensionEnabler = new PersistenceExtensionEnabler(testClass);
      if (!persistenceExtensionEnabler.shouldPersistenceExtensionBeActivated())
      {
         return;
      }

      final Set<ResourceDescriptor<?>> allDataResources = fetchAllDataResources(testClass);
View Full Code Here

   private Event<BeforePersistenceClass> beforePersistenceClassEvent;

   public void beforeClass(@Observes BeforeClass beforeClass)
   {
      metadataExtractorProducer.set(new MetadataExtractor(beforeClass.getTestClass()));
      persistenceExtensionEnabler.set(new PersistenceExtensionEnabler(metadataExtractorProducer.get()));
      if (persistenceExtensionEnabler.get().isPersistenceExtensionRequired())
      {
         initializeConfigurationEvent.fire(new InitializeConfiguration());
         beforePersistenceClassEvent.fire(new BeforePersistenceClass(beforeClass.getTestClass()));
      }
View Full Code Here

   @Override
   public void process(Archive<?> applicationArchive, TestClass testClass)
   {

      final PersistenceExtensionEnabler persistenceExtensionEnabler = new PersistenceExtensionEnabler(testClass);
      if (!persistenceExtensionEnabler.isPersistenceExtensionRequired())
      {
         return;
      }

      final Set<ResourceDescriptor<?>> allDataResources = fetchAllDataResources(testClass);
View Full Code Here

   @Override
   public void process(Archive<?> applicationArchive, TestClass testClass)
   {

      final PersistenceExtensionEnabler persistenceExtensionEnabler = new PersistenceExtensionEnabler(testClass);
      if (!persistenceExtensionEnabler.isPersistenceExtensionRequired())
      {
         return;
      }
      obtainDataSourceFromPersistenceXml(applicationArchive);
      final JavaArchive additionalPersistenceResources = ShrinkWrap.create(JavaArchive.class, "arquillian-persistence-extension-additional-resources.jar");
View Full Code Here

   @Override
   public void process(Archive<?> applicationArchive, TestClass testClass)
   {

      final PersistenceExtensionEnabler persistenceExtensionEnabler = new PersistenceExtensionEnabler(testClass);
      if (!persistenceExtensionEnabler.shouldPersistenceExtensionBeActivated())
      {
         return;
      }

      final Set<ResourceDescriptor<?>> allDataResources = fetchAllDataResources(testClass);
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.persistence.core.metadata.PersistenceExtensionEnabler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.