* @param interceptorInstance interceptor instance
* @throws Exception if any exception occurs
*/
public void injectDependenciesOfEjbInterceptor(Object ejbInstance, Object interceptorInstance, Object mapKey) throws Exception
{
OWBInjector owbInjector = new OWBInjector(webBeansContext);
CreationalContextImpl<Object> cc = null;
//Look for contextual ejb or not
if(this.injectedContextuals.containsKey(mapKey))
{
cc = this.injectedContextuals.get(mapKey);
//Add all dependencies of interceptor to ejb bean
owbInjector.inject(interceptorInstance,cc);
}
else
{
cc = (CreationalContextImpl<Object>)this.beanManager.createCreationalContext(null);
owbInjector.inject(interceptorInstance,cc);
this.injectedNonContextuals.get(mapKey).add(cc);
}
}