public class Components extends Object
Configuration instance.
If no explicit configuration is supplied, the class will attempt to auto-configure.
Auto-configuration is accomplished using a properties file. By default, this file
is called "ogm.properties" and it must be available on the class path.
You can supply a different configuration properties file, by specifying a system property
"ogm.properties" that refers to the configuration file you want to use. Your alternative
configuration file must be on the class path.
The properties file should contain the desired configuration values for each of the
various components - Driver, Compiler, etc. Please refer to the relevant configuration
for each of these.| Modifier and Type | Method and Description |
|---|---|
static void |
autoConfigure()
The OGM Components can be auto-configured from a properties file, "ogm.properties", or
a similar configuration file, specified by a system property or environment variable called "ogm.properties".
|
static Compiler |
compiler() |
static void |
configure(Configuration configuration)
Configure the OGM from a pre-built Configuration class
|
static void |
configure(String configurationFileName)
Configure the OGM from the specified config file
|
static void |
destroy() |
static Driver |
driver() |
static double |
neo4jVersion() |
static void |
setDriver(Driver driver) |
public static void configure(Configuration configuration)
configuration - The configuration to usepublic static void configure(String configurationFileName)
configurationFileName - The config file to usepublic static Driver driver()
public static Compiler compiler()
public static void autoConfigure()
public static void setDriver(Driver driver)
public static double neo4jVersion()
public static void destroy()
Copyright © 2016 Neo Technology, Inc.. All rights reserved.