Package org.jboss.arquillian.drone.spi

Examples of org.jboss.arquillian.drone.spi.Destructor.destroyInstance()


                // get instance to be destroyed
                // if deployment failed, there is nothing to be destroyed
                Object instance = droneMethodContext.get(parameterTypes[i], qualifier);
                if (instance != null) {
                    instance = deenhance(type, qualifier, instance);
                    destructor.destroyInstance(instance);
                }

                droneMethodContext.remove(parameterTypes[i], qualifier);
            }
        }
View Full Code Here


         Class<?> typeClass = f.getType();
         Class<? extends Annotation> qualifier = SecurityActions.getQualifier(f);

         @SuppressWarnings("rawtypes")
         Destructor destructor = getDestructorFor(typeClass);        
         destructor.destroyInstance(droneContext.get().get(typeClass, qualifier));
         droneContext.get().remove(typeClass, qualifier);
      }
   }

   @SuppressWarnings("unchecked")
View Full Code Here

            Destructor destructor = getDestructorFor(parameterTypes[i]);

            DroneContext context = methodContext.get().get(method);
            Validate.notNull(context, "Method context should not be null");
           
            destructor.destroyInstance(context.get(parameterTypes[i], qualifier));
            context.remove(parameterTypes[i], qualifier);
         }
      }

   }
View Full Code Here

                        instance.getClass().getSimpleName());
            }
        }

        if (destructor != null && !destructor.getClass().equals(this.getClass())) {
            destructor.destroyInstance(instance);
        }
        // this is default destructor
        else {
            instance.quit();
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.