protected void initRestRefs() throws Exception { // add rest refs to existing rests if (getRestRefs() != null) { for (RestContextRefDefinition ref : getRestRefs()) { List<RestDefinition> defs = ref.lookupRests(getContext()); for (RestDefinition def : defs) { LOG.debug("Adding rest from {} -> {}", ref, def); // add in top as they are most likely to be common/shared // which you may want to start first getRests().add(0, def); } } } }
public List<RestContextRefDefinition> getRestRefs() { return restRefs; }
public void setRestRefs(List<RestContextRefDefinition> restRefs) { this.restRefs = restRefs; }
@Override public List<RestContextRefDefinition> getRestRefs() { return _factoryBean.getRestRefs(); }
public abstract List<RestContextRefDefinition> getRestRefs();