com.wideplay.warp.persist
Class PersistenceMatchers

java.lang.Object
  extended by com.wideplay.warp.persist.PersistenceMatchers

public class PersistenceMatchers
extends Object

Custom matchers for use with Warp Persist.


Method Summary
static com.google.inject.matcher.Matcher<AnnotatedElement> transactionalWithUnit(Class<?> annotation)
          Matches on all @Transactional annotations that have the specified unit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

transactionalWithUnit

public static com.google.inject.matcher.Matcher<AnnotatedElement> transactionalWithUnit(Class<?> annotation)
Matches on all @Transactional annotations that have the specified unit.
 transactionalWithUnit(Sales.class) => @Transactional(unit=Sales.class)
 

Parameters:
annotation - the unit annotation
Returns:
a matcher that matches on @Transactional(unit=annotation)