com.jdon.domain.dci
类 RoleAssigner
java.lang.Object
com.jdon.domain.dci.RoleAssigner
public class RoleAssigner
- extends Object
DCI : Data Context interactions
in context, the interactions of Role will be assigned to data model;
the component name is "roleAssigner";
- 作者:
- banq
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
module
public static final String module
RoleAssigner
public RoleAssigner(ModelProxyInjection modelProxyInjection,
ModelAdvisor modelAdvisor)
assignDomainEvents
public void assignDomainEvents(Object datamodel)
assignAggregateRoot
public Object assignAggregateRoot(Object datamodel)
- assign a object as a AggregateRoot role, AggregateRoot can receive a
command and reactive a event in CQRS.
when we get a domain mode from repository with @introduce("modelcache")
and @Around, the mode has been assign as a AggregateRoot;no need call
this method.
- 参数:
datamodel -
assignRoleEvents
public Object assignRoleEvents(Object role)
assignRoleEvents
public Object assignRoleEvents(Class roleClass)
assign
public Object assign(Object datamodel,
Object role)
Copyright © 2013. All Rights Reserved.