public class Instantiator
extends java.lang.Object
ConfigFile
object.
It provides two methods that wrap the configuration access for two specific
classes of the framework and allows the injection of an ErrorCarrier
object into them.
ConfigFile
,
ErrorCarrier
Constructor and Description |
---|
Instantiator() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
create(java.lang.String className,
org.joty.common.ConfigFile configuration) |
static Accessor |
createAccessor(org.joty.common.JotyMessenger jotyMessanger,
org.joty.common.ErrorCarrier errorCarrier,
org.joty.common.ConfigFile config,
org.joty.common.ConfigFile extraConfig,
DbManager.DbConnectionGrabber dbConnGrabber)
extraConfig argument exists because on the server side there are
two different configuration files and one of them is kept far from the
Accessor object a part from a small chunk of data that here are
injected into the object. |
static DbManager |
createDbManager(org.joty.common.ErrorCarrier errorCarrier,
org.joty.common.ConfigFile configuration) |
public static <T> T create(java.lang.String className, org.joty.common.ConfigFile configuration) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public static Accessor createAccessor(org.joty.common.JotyMessenger jotyMessanger, org.joty.common.ErrorCarrier errorCarrier, org.joty.common.ConfigFile config, org.joty.common.ConfigFile extraConfig, DbManager.DbConnectionGrabber dbConnGrabber) throws java.lang.ClassNotFoundException
extraConfig
argument exists because on the server side there are
two different configuration files and one of them is kept far from the
Accessor
object a part from a small chunk of data that here are
injected into the object.java.lang.ClassNotFoundException
Accessor
public static DbManager createDbManager(org.joty.common.ErrorCarrier errorCarrier, org.joty.common.ConfigFile configuration) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException