A Continual Learning Framework for Adaptive Defect Classification and Inspection