Skip to content

Commit

Permalink
fix compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
sbryzak committed Mar 23, 2011
1 parent 55def16 commit 693e320
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -60,7 +60,7 @@ public void load(Object entity)
if (!injectionRequired(entity.getClass()))
{
injectionTargets.put(entity.getClass(), NULL_INJECTION_TARGET);
log.debug("Entity {} has no injection points so injection will not be enabled", entity.getClass());
log.debugv("Entity {} has no injection points so injection will not be enabled", entity.getClass());
}
else
{
Expand All @@ -69,13 +69,13 @@ public void load(Object entity)
AnnotatedTypeBuilder<?> builder = new AnnotatedTypeBuilder().readFromType(entity.getClass());
InjectionTarget<?> injectionTarget = getBeanManager().createInjectionTarget(builder.create());
injectionTargets.put(entity.getClass(), injectionTarget);
log.info("Enabling injection into entity {}", entity.getClass());
log.infov("Enabling injection into entity {}", entity.getClass());
}
}
InjectionTarget it = injectionTargets.get(entity.getClass());
if (it != NULL_INJECTION_TARGET)
{
log.debug("Running CDI injection for {}", entity.getClass());
log.debugv("Running CDI injection for {}", entity.getClass());
it.inject(entity, new CreationalContextImpl());
}

Expand Down

0 comments on commit 693e320

Please sign in to comment.