public void validate(EjbModule ejbModule) {
    if (ejbModule.getFinder() == null) {
      return;
    }

    if (ejbModule.getBeans() == null && hasAtInject(ejbModule.getFinder())) {
      warn(ejbModule.getModuleId(), "cdi.notEnabled", ejbModule.getModuleId());
    }
  }
Esempio n. 2
0
  public void validate(final EjbModule ejbModule) {
    if (ejbModule.getFinder() == null
        || ejbModule.getProperties().containsKey("openejb.cdi.activated")) {
      return;
    }

    if (ejbModule.getBeans() == null && hasAtInject(ejbModule.getFinder())) {
      warn(ejbModule.getModuleId(), "cdi.notEnabled", ejbModule.getModuleId());
    }
  }