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

字段摘要
static String module
           
 
构造方法摘要
RoleAssigner(ModelProxyInjection modelProxyInjection, ModelAdvisor modelAdvisor)
           
 
方法摘要
 Object assign(Object datamodel, Object role)
           
 Object assignAggregateRoot(Object datamodel)
          assign a object as a AggregateRoot role, AggregateRoot can receive a command and reactive a event in CQRS.
 void assignDomainEvents(Object datamodel)
           
 Object assignRoleEvents(Class roleClass)
           
 Object assignRoleEvents(Object role)
           
 
从类 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.