public void removeListener ( SettingsEntityListener settingsEntityListener ) { RunAsSystemAspect . runAsSystem ( ( ) -> entityListenersService . removeEntityListener ( entityTypeId , new EntityListener ( ) { @ Override public void postUpdate ( Entity entity ) { settingsEntityListener . postUpdate ( entity ) ; } @ Override public Object getEntityId ( ) { return getEntityType ( ) . getId ( ) ; } } ) ) ; }
Removes a listener for this settings entity that fires on entity updates