implement clear() and all() method on DIContainer