@Override public void afterPropertiesSet() throws Exception { // Derive a default and instance key prefix of the form "<parent>.default." and "<parent>.value.<this>." StringBuilder defaultKeyPrefixBuff = new StringBuilder(200); StringBuilder instanceKeyPrefixBuff = new StringBuilder(200); List<String> id = getInstancePath(); int size = id.size(); if (size > 1) { defaultKeyPrefixBuff.append(id.get(size - 2)).append('.'); instanceKeyPrefixBuff.append(defaultKeyPrefixBuff); } defaultKeyPrefixBuff.append("default."); instanceKeyPrefixBuff.append("value.").append(id.get(size - 1)).append('.'); this.defaultKeyPrefix = defaultKeyPrefixBuff.toString(); this.instanceKeyPrefix = instanceKeyPrefixBuff.toString(); // Set initial values according to property defaults. super.afterPropertiesSet(); }
@Override public void afterPropertiesSet() throws Exception { // Derive a default and instance key prefix of the form "<parent>.default." and "<parent>.value.<this>." StringBuilder defaultKeyPrefixBuff = new StringBuilder(200); StringBuilder instanceKeyPrefixBuff = new StringBuilder(200); List<String> id = getInstancePath(); int size = id.size(); if (size > 1) { defaultKeyPrefixBuff.append(id.get(size - 2)).append('.'); instanceKeyPrefixBuff.append(defaultKeyPrefixBuff); } defaultKeyPrefixBuff.append("default."); instanceKeyPrefixBuff.append("value.").append(id.get(size - 1)).append('.'); this.defaultKeyPrefix = defaultKeyPrefixBuff.toString(); this.instanceKeyPrefix = instanceKeyPrefixBuff.toString(); // Set initial values according to property defaults. super.afterPropertiesSet(); }
@Override public void afterPropertiesSet() throws Exception { List<String> idList = getInstancePath(); if (idList.isEmpty()) { throw new IllegalStateException("Invalid instance path"); } if (getTypeName() == null) { setTypeName(idList.get(0)); } super.afterPropertiesSet(); // Validate that context files exist for this path if (new ResourceFinder(getParent()).getResources(getContextResourcePatterns()).length == 0) { throw new IllegalStateException("Invalid type " + getTypeName() + " specified for "+ getCategory() + " subsystem. No context file found"); } }
@Override public void afterPropertiesSet() throws Exception { List<String> idList = getInstancePath(); if (idList.isEmpty()) { throw new IllegalStateException("Invalid instance path"); } if (getTypeName() == null) { setTypeName(idList.get(0)); } super.afterPropertiesSet(); // Validate that context files exist for this path if (new ResourceFinder(getParent()).getResources(getContextResourcePatterns()).length == 0) { throw new IllegalStateException("Invalid type " + getTypeName() + " specified for "+ getCategory() + " subsystem. No context file found"); } }
/** * {@inheritDoc} */ @Override public void afterPropertiesSet() throws Exception { PropertyCheck.mandatory(this, "searchPath", searchPath); PropertyCheck.mandatory(this, "transactionService", transactionService); PropertyCheck.mandatory(this, "auditDAO", auditDAO); PropertyCheck.mandatory(this, "dataExtractors", dataExtractors); PropertyCheck.mandatory(this, "dataGenerators", dataGenerators); super.afterPropertiesSet(); }
/** * {@inheritDoc} */ @Override public void afterPropertiesSet() throws Exception { PropertyCheck.mandatory(this, "searchPath", searchPath); PropertyCheck.mandatory(this, "transactionService", transactionService); PropertyCheck.mandatory(this, "auditDAO", auditDAO); PropertyCheck.mandatory(this, "dataExtractors", dataExtractors); PropertyCheck.mandatory(this, "dataGenerators", dataGenerators); super.afterPropertiesSet(); }