Class SpringService<T extends RootEntity>
java.lang.Object
com.cloudimpl.outstack.spring.component.SpringService<T>
- Type Parameters:
T-
- All Implemented Interfaces:
java.util.function.Function<CloudMessage,org.reactivestreams.Publisher>
public class SpringService<T extends RootEntity> extends java.lang.Object implements java.util.function.Function<CloudMessage,org.reactivestreams.Publisher>
- Author:
- nuwan
-
Constructor Summary
Constructors Constructor Description SpringService(EventRepositoryFactory factory) -
Method Summary
Modifier and Type Method Description static void$(java.lang.Class<? extends CommandHandler<?>> handler)static void$$(java.lang.Class<? extends Entity> entityType)org.reactivestreams.Publisherapply(CloudMessage msg)static java.util.Collection<java.lang.Class<? extends Entity>>cmdEntities(java.lang.Class<? extends RootEntity> rootType)static booleanfilter(java.lang.Class<? extends RootEntity> rootType, java.lang.Class<? extends Handler<?>> handlerType)static java.util.Collection<java.lang.Class<? extends CommandHandler<?>>>handlers(java.lang.Class<? extends RootEntity> rootType)static java.util.Collection<java.lang.Class<? extends Entity>>queryEntities(java.lang.Class<? extends RootEntity> rootType)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.Function
andThen, compose
-
Constructor Details
-
SpringService
-
-
Method Details
-
$
-
$$
-
apply
- Specified by:
applyin interfacejava.util.function.Function<CloudMessage,org.reactivestreams.Publisher>
-
filter
public static boolean filter(java.lang.Class<? extends RootEntity> rootType, java.lang.Class<? extends Handler<?>> handlerType) -
queryEntities
public static java.util.Collection<java.lang.Class<? extends Entity>> queryEntities(java.lang.Class<? extends RootEntity> rootType) -
handlers
public static java.util.Collection<java.lang.Class<? extends CommandHandler<?>>> handlers(java.lang.Class<? extends RootEntity> rootType) -
cmdEntities
public static java.util.Collection<java.lang.Class<? extends Entity>> cmdEntities(java.lang.Class<? extends RootEntity> rootType)
-