Examples of during()


Examples of javax.enterprise.event.Observes.during()

        }
        else if (observes.during().equals(TransactionPhase.AFTER_SUCCESS))
        {
            return TransactionalObserverType.AFTER_TRANSACTION_SUCCESS;
        }
        else if (observes.during().equals(TransactionPhase.AFTER_FAILURE))
        {
            return TransactionalObserverType.AFTER_TRANSACTION_FAILURE;
        }
        else if (observes.during().equals(TransactionPhase.BEFORE_COMPLETION))
        {
View Full Code Here

Examples of javax.enterprise.event.Observes.during()

        }
        else if (observes.during().equals(TransactionPhase.AFTER_FAILURE))
        {
            return TransactionalObserverType.AFTER_TRANSACTION_FAILURE;
        }
        else if (observes.during().equals(TransactionPhase.BEFORE_COMPLETION))
        {
            return TransactionalObserverType.BEFORE_TRANSACTION_COMPLETION;
        }
        else
        {
View Full Code Here

Examples of javax.enterprise.event.Observes.during()

    public static TransactionPhase getObserverMethodTransactionType(AnnotatedMethod<?> observerMethod)
    {
        Observes observes = AnnotationUtil.getAnnotatedMethodFirstParameterAnnotation(observerMethod, Observes.class);
        if (observes != null)
        {
            return observes.during();
        }
       
        return null;
    }
View Full Code Here

Examples of javax.enterprise.event.Observes.during()

    if (method.isAnnotationPresent(Disposes.class)) {
      throw InjectManager.error(method, L.l("A method may not have both an @Observer and a @Disposes annotation."));
    }

    ObserverMethodImpl<X,Z> observerMethod;
    switch(observes.during()) {
    case BEFORE_COMPLETION:
      observerMethod
        = new ObserverMethodBeforeCompletionImpl(_cdiManager,
                                                 bean,
                                                 beanMethod,
View Full Code Here

Examples of javax.enterprise.event.Observes.during()

      Observes observes = param.getAnnotation(Observes.class);
     
      if (observes != null) {
        _isIfExists = observes.notifyObserver() == Reception.IF_EXISTS;
        _transactionPhase = observes.during();
      }
      else {
        InjectionPoint ip = new InjectionPointImpl(_cdiManager,
                                                   _bean,
                                                   param);
View Full Code Here

Examples of org.opengis.filter.FilterFactory.during()

    public void testDuring() throws Exception {
        init();
        Period period = period("2004-19-06 03:44:56", "2004-20-06 03:44:58");
        FilterFactory ff = dataStore.getFilterFactory();
        Filter f = ff.during(ff.property("installed_tdt"), ff.literal(period));
        SimpleFeatureCollection features = featureSource.getFeatures(f);
        assertEquals(1, features.size());
    }

    public void testTContains() throws Exception {
View Full Code Here

Examples of org.opengis.filter.FilterFactory.during()

   
    public void testDuring() throws Exception {
        Period period = period("2009-01-01 00:00:00", "2009-07-28 15:12:41");
        FilterFactory ff = dataStore.getFilterFactory();
       
        During during = ff.during(ff.property(aname("dt")), ff.literal(period));
        assertDatesMatch(during, "2009-01-15 13:10:12", "2009-06-28 15:12:41");
    }
   
    public void testTContains() throws Exception {
        Period period = period("2009-01-01 00:00:00", "2009-07-28 15:12:41");
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.