@ Inject protected void injectDependencies ( Cache cache ) { this . queryCache = cache . getCacheManager ( ) . getGlobalComponentRegistry ( ) . getComponent ( QueryCache . class ) ; ComponentRegistry componentRegistry = cache . getAdvancedCache ( ) . getComponentRegistry ( ) ; matcher = componentRegistry . getComponent ( matcherImplClass ) ; if ( matcher == null ) { throw new CacheException ( "Expected component not found in registry: " + matcherImplClass . getName ( ) ) ; } }
Acquires a Matcher instance from the ComponentRegistry of the given Cache object .