Examples of ActorProps


Examples of com.fourtyfourblocks.akka.di.ActorProps

    @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()));
    }
View Full Code Here

Examples of com.fourtyfourblocks.akka.di.ActorProps

    {
        for (Field field : type.getRawType().getDeclaredFields())
        {
            if (field.getType() == Props.class && field.isAnnotationPresent(ActorProps.class))
            {
                final ActorProps annotation = field.getAnnotation(ActorProps.class);
                encounter.register(new ActorPropsInjector<I>(field, annotation.actorClass()));
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.