public static class RootConfig.ObjectConfig extends Object
This class stores information used to configure an X object being
instantiated. When a new object (RootObject) is created, the
constructor is passed an instance of this class that it uses to
initialize itself.
The RootConfig class provides facilities to store objects of this
class indexed by names (typically package names) that refer to groups
of like objects. When an object is being instantiated, it queries
RootConfig for a configuration object to use and supplies that
object to RootObject for initialization.
The most common usage scenario is to store configuration objects indexed by package and use that object to configure all objects in that package. Furthermore, for performance reasons, the package normally caches the package configuration object to avoid table lookups for the creation of each object in the package.
| Modifier and Type | Field and Description |
|---|---|
boolean |
checked
Contains the object's checked mode of operation.
|
String |
name
The name of this object configuration object
|
boolean |
threaded
Contains the object's threaded mode of operation
|
| Modifier and Type | Method and Description |
|---|---|
static Tracer |
createTracer(RootConfig.ObjectConfig config)
Create a tracer from a object configuration object.
|
static RootConfig.ObjectConfig |
get(String name)
Get an object configuration object for a named set of objects.
|
String |
toString()
Get a string representation of the config object
|
public String name
public boolean threaded
public boolean checked
public static RootConfig.ObjectConfig get(String name)
name - The name of the object set.
This method creates a new object configuration object. The method
performs the following:
- Query RootConfig.getThreaded(java.lang.String) and RootConfig.getChecked(java.lang.String)
methods using the supplied name to initialize the object.
public static Tracer createTracer(RootConfig.ObjectConfig config)
config - The configuration object to use to create the tracer.
This method gets a tracer object with the name in the supplied object configuration object or creates an anonymous one if the supplied config object is null.
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.