use of org.infinispan.marshall.core.GlobalMarshaller in project infinispan by infinispan.
the class CommandsFactoryImpl method getValueMatcher.
private ValueMatcher getValueMatcher(Object o) {
SerializeFunctionWith ann = o.getClass().getAnnotation(SerializeFunctionWith.class);
if (ann != null)
return ValueMatcher.valueOf(ann.valueMatcher().toString());
Externalizer ext = ((GlobalMarshaller) marshaller).findExternalizerFor(o);
if (ext instanceof LambdaExternalizer)
return ValueMatcher.valueOf(((LambdaExternalizer) ext).valueMatcher(o).toString());
return ValueMatcher.MATCH_ALWAYS;
}
Aggregations