public class ConstructorFactory extends Object implements AgentFactory
Constructor and Description |
---|
ConstructorFactory(Class<? extends Agent> clazz,
Constructor<?> constructor,
Function<String,?>[] converters) |
ConstructorFactory(Class<? extends Agent> clazz,
Constructor<?> constructor,
Function<String,?>[] converters,
String name) |
Modifier and Type | Method and Description |
---|---|
Agent |
build(String... args) |
String |
name() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
build
public ConstructorFactory(Class<? extends Agent> clazz, Constructor<?> constructor, Function<String,?>[] converters)
public Agent build(String... args)
build
in interface AgentFactory
public String name()
name
in interface AgentFactory
Copyright © 2017 FOSS Galaxy. All rights reserved.