// get the component registry and then register the searchFactory.
ComponentRegistry cr = cache.getAdvancedCache().getComponentRegistry();
cr.registerComponent(searchFactory, SearchFactoryImplementor.class);
// Get the interceptor chain factory so I can create my interceptor.
InterceptorChainFactory icf = cr.getComponent(InterceptorChainFactory.class);
CommandInterceptor inter = icf.createInterceptor(interceptorClass);
cr.registerComponent(inter, QueryInterceptor.class);
cache.getAdvancedCache().addInterceptorAfter(inter, LockingInterceptor.class);
}