Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
xlorne committed Feb 9, 2020
2 parents 7b49966 + c9ef92b commit 93dcb7b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ https://github.com/alibaba/COLA/issues/61
//Domain 需要继承DomainObject对象
class XXXDomain extends DomainObject{
//初始化数据
private XXX domain;
private final XXX xxx;

//资源对象,有DomainFactory构建传入,对象在DomainObject中,子类可直接使用。
protected static EventBus eventBus;
protected static RepositoryBus repositoryBus;


//构造函数 初始化数据
public XXXDomain(XXX domain){
this.domain = domain;
public XXXDomain(XXX xxx){
this.xxx = xxx;
}

//构造函数 初始化数据
public XXXDomain(String domainId){
this.domain = repositoryBus.execute(new XXXHandler.GetById(domainId));
public XXXDomain(String xxxId){
this.xxx = repositoryBus.execute(new XXXHandler.GetById(xxxId));
}

//临时对象,用于业务处理过程中
Expand Down

0 comments on commit 93dcb7b

Please sign in to comment.