Sha256: 61c58f4f1f4927d3eec2515f3054ecebb70d091735d84f6670f6f8575fc5f3b1

Contents?: true

Size: 558 Bytes

Versions: 6

Compression:

Stored size: 558 Bytes

Contents

package com.game_machine.core;
import akka.actor.IndirectActorProducer;
import akka.actor.UntypedActor;
import akka.actor.Actor;

class ActorFactory implements IndirectActorProducer {
  final String beanName;
  private Object factory;
  
  public ActorFactory(Object factory, String beanName) {
    this.beanName = beanName;
    this.factory = factory;
    
  }
  
  @Override
  public Class<? extends Actor> actorClass() {
	  return UntypedActor.class;
  }
  
  @Override
  public UntypedActor produce() {
    return ((IActorFactory)factory).create();
  }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
game_machine-1.0.4 java/project/src/main/java/com/game_machine/core/ActorFactory.java
game_machine-1.0.2 java/project/src/main/java/com/game_machine/core/ActorFactory.java
game_machine-0.0.11 java/src/main/java/com/game_machine/core/ActorFactory.java
game_machine-0.0.10 java/src/main/java/com/game_machine/core/ActorFactory.java
game_machine-0.0.9 java/src/main/java/com/game_machine/core/ActorFactory.java
game_machine-0.0.8 java/src/main/java/com/game_machine/core/ActorFactory.java