public final ConfigChanges updated ( Collection < Bean > after ) { ConfigChanges changes = new ConfigChanges ( ) ; for ( Bean bean : after ) { Optional < Bean > optional = beanManager . getEager ( bean . getId ( ) ) ; if ( ! optional . isPresent ( ) ) { throw Events . CFG304_BEAN_DOESNT_EXIST ( bean . getId ( ) ) ; } Bean before = optional . get ( ) ; schemaManager . setSchema ( Arrays . asList ( before ) ) ; changes . add ( ConfigChange . updated ( before , bean ) ) ; } return changes ; }
Create a changes object from an update operation .