public final ConfigChanges deleted ( String schemaName , Collection < String > instanceIds ) { ConfigChanges changes = new ConfigChanges ( ) ; for ( String instanceId : instanceIds ) { BeanId id = BeanId . create ( instanceId , schemaName ) ; Optional < Bean > before = beanManager . getEager ( id ) ; if ( ! before . isPresent ( ) ) { throw Events . CFG304_BEAN_DOESNT_EXIST ( id ) ; } Bean bean = before . get ( ) ; schemaManager . setSchema ( Arrays . asList ( bean ) ) ; changes . add ( ConfigChange . deleted ( bean ) ) ; } return changes ; }
Create a changes object from a delete operation .