<listener /> block now accept service or class attributes