/**
  * Clears the caches without immediately recalculating them
  *
  * @access public
  * @author Joel Bout, <*****@*****.**>
  * @return mixed
  */
 public function clearCaches()
 {
     self::$_properties = null;
     self::$_classes = null;
     self::$_resources = array();
     self::$_resources_loaded = false;
     ClassProxy::$ressourcesDelegatedTo = array();
     ResourceProxy::$ressourcesDelegatedTo = array();
     PropertyProxy::$ressourcesDelegatedTo = array();
     // remove hard-api-property cache.
     $cache = \common_cache_FileCache::singleton();
     $cache->remove('hard-api-property');
 }
 /**
  * Behaviour to adopt when an instancer of Switcher is destroyed by PHP.
  * 
  * @access public
  */
 public function __destruct()
 {
     ClassProxy::$ressourcesDelegatedTo = array();
     ResourceProxy::$ressourcesDelegatedTo = array();
     PropertyProxy::$ressourcesDelegatedTo = array();
 }