return (icp == null) ? super.getComponentProvider(cc, c) : wrap(c, icp);
}
private ResourceComponentProvider wrap(Class c, IoCComponentProvider icp) {
if (icp instanceof IoCManagedComponentProvider) {
IoCManagedComponentProvider imcp = (IoCManagedComponentProvider)icp;
if (imcp.getScope() == ComponentScope.PerRequest) {
return new PerRequestWrapper(getInjectableProviderContext(), imcp);
} else if (imcp.getScope() == ComponentScope.Singleton) {
return new SingletonWrapper(getInjectableProviderContext(), imcp);
} else {
return new UndefinedWrapper(getInjectableProviderContext(), imcp);
}
} else if (icp instanceof IoCFullyManagedComponentProvider) {