/** * {@inheritDoc} */ public void afterPropertiesSet() throws Exception { // Default the category to the bean name if (this.category == null) { if (this.beanName == null) { throw new IllegalStateException("Category not provided"); } this.category = this.beanName; } // Derive the unique ID from the category and instance path List<String> path = getInstancePath(); this.id = new ArrayList<String>(path.size() + 1); this.id.add(this.category); this.id.addAll(getInstancePath()); init(); }
/** * {@inheritDoc} */ public void afterPropertiesSet() throws Exception { // Default the category to the bean name if (this.category == null) { if (this.beanName == null) { throw new IllegalStateException("Category not provided"); } this.category = this.beanName; } // Derive the unique ID from the category and instance path List<String> path = getInstancePath(); this.id = new ArrayList<String>(path.size() + 1); this.id.add(this.category); this.id.addAll(getInstancePath()); init(); }