@Produces
@ActorProps(actorClass = GenericActor.class)
Props produce(InjectionPoint ip)
{
final ActorProps propsDefinition = ip.getAnnotated().getAnnotation(ActorProps.class);
logger.info("Producing props for {}", propsDefinition);
if (logger.isDebugEnabled())
{
logger.debug("Injecting at: {}", ip.getMember().getDeclaringClass());
logger.debug("Annotation: {}", ip.getAnnotated().getAnnotations());
}
return Props.create(factory.creator(propsDefinition.actorClass()));
}