public class Configurator extends Object
SmooksResourceConfiguration
.Constructor and Description |
---|
Configurator() |
Modifier and Type | Method and Description |
---|---|
static <U> U |
configure(U instance,
SmooksResourceConfiguration config)
Configure the supplied
ContentHandler instance using the supplied
SmooksResourceConfiguration instance. |
static <U> U |
configure(U instance,
SmooksResourceConfiguration config,
ApplicationContext appContext)
Configure the supplied
ContentHandler instance using the supplied
SmooksResourceConfiguration and ApplicationContext instances. |
static <U> void |
initialise(U instance) |
static <U> void |
processFieldConfigAnnotations(U instance,
SmooksResourceConfiguration config,
boolean includeConfigParams) |
static <U> void |
processFieldContextAnnotation(U instance,
ApplicationContext appContext) |
static <U> void |
uninitialise(U instance) |
public static <U> U configure(U instance, SmooksResourceConfiguration config, ApplicationContext appContext) throws SmooksConfigurationException
ContentHandler
instance using the supplied
SmooksResourceConfiguration
and ApplicationContext
instances.instance
- The instance to be configured.config
- The configuration.appContext
- Associated application context.SmooksConfigurationException
- Invalid field annotations.public static <U> U configure(U instance, SmooksResourceConfiguration config) throws SmooksConfigurationException
ContentHandler
instance using the supplied
SmooksResourceConfiguration
instance.instance
- The instance to be configured.config
- The configuration.SmooksConfigurationException
- Invalid field annotations.public static <U> void processFieldContextAnnotation(U instance, ApplicationContext appContext)
public static <U> void processFieldConfigAnnotations(U instance, SmooksResourceConfiguration config, boolean includeConfigParams)
public static <U> void initialise(U instance)
public static <U> void uninitialise(U instance)
Copyright © 2020. All rights reserved.