}
@Override
public void process(ProcessClassContext processClassContext) {
final Class<?> cls = processClassContext.getCls();
final DomainService annotation = Annotations.getAnnotation(cls, DomainService.class);
if (annotation == null) {
return;
}
FacetUtil.addFacet(
new DomainServiceFacetAnnotation(
processClassContext.getFacetHolder(),
annotation.menuOrder(), annotation.repositoryFor()));
if(annotation.repositoryFor() != null) {
FacetUtil.addFacet(
new IconFacetDerivedFromDomainServiceAnnotation(
processClassContext.getFacetHolder(),
annotation.repositoryFor()));
}
return;
}