com.wideplay.warp.persist.internal
Class InternalPersistenceMatchers

java.lang.Object
  extended by com.wideplay.warp.persist.internal.InternalPersistenceMatchers

public class InternalPersistenceMatchers
extends Object

Custom internal matchers.


Method Summary
static com.google.inject.matcher.Matcher<AnnotatedElement> finderWithUnit(Class<?> annotation)
          Matches on all @Finder 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

finderWithUnit

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

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