Life cycle of an component.