您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

EntityControllerAspect.java 422B

123456789101112131415
  1. import org.aspectj.lang.annotation.Aspect;
  2. import org.aspectj.lang.annotation.*;
  3. @Aspect
  4. public class EntityControllerAspect {
  5. @DeclareParents(value = "@EntityController *", defaultImpl = EntityMongoController.class)
  6. private IEntityController iEntityController;
  7. /*
  8. @DeclareMixin("@EntityController *")
  9. private IEntityController createEntityControllerInstance() {
  10. return new EntityMongoController();
  11. }
  12. */
  13. }