public interface ServerConfiguration
ConfigurableValue will be
matched with configuration data, and classes annotated as
ConfigurableInstance will have
instances created and configured as specified in the server configuration.| Modifier and Type | Method and Description |
|---|---|
Collection<?> |
configureInstances(Class<?> target)
Creates and configures potentially multiple instances of a target class
annotated as
ConfigurableInstance. |
void |
configureMe(Object target)
Configures a target object by matching configuration clauses with
ConfigurableValue annotations on the
target object. |
Collection<?> |
configureNamedInstances(List<?> instances)
Configures a set of named instances that have already been created.
|
void |
publishConfiguration(Object target)
Gathers public configuration data for publication to brokers.
|
void |
saveBootstrapState(Object thing)
Gathers state information at the end of a boot session to be restored in a
subsequent sim session.
|
void configureMe(Object target)
ConfigurableValue annotations on the
target object. This is typically called in the initialize() method.Collection<?> configureInstances(Class<?> target)
ConfigurableInstance.
Returns the created instances in a list in no particular order.Collection<?> configureNamedInstances(List<?> instances)
void publishConfiguration(Object target)
ConfigurableValue
properties with publish=true. Note that such properties must either be
fields, or have a "standard" getter, or must specify a getter that produces
the value as a String. This is typically called at the end of the
initialize() method.void saveBootstrapState(Object thing)
ConfigurableValue properties with
bootstrapState=true. Such properties can be fields, or may have "standard"
getters and setters. This method is called at the end of a bootstrap session
session by a component that wishes to have its state saved in the boot record.Copyright © 2017 Power TAC. All rights reserved.