public class Configurables extends Object
Configurable
s.Constructor and Description |
---|
Configurables() |
Modifier and Type | Method and Description |
---|---|
static boolean |
configure(Object target,
ComponentConfiguration conf) |
static boolean |
configure(Object target,
Context context)
Check that
target implements Configurable and, if so, ask
it to configure itself using the supplied context . |
static void |
ensureOptionalNonNull(Context context,
String... keys) |
static void |
ensureRequiredNonNull(Context context,
String... keys) |
public static boolean configure(Object target, Context context)
target
implements Configurable
and, if so, ask
it to configure itself using the supplied context
.target
- An object that potentially implements Configurable.context
- The configuration contexttarget
implements Configurable, false otherwise.public static boolean configure(Object target, ComponentConfiguration conf)
Copyright © 2009–2019 Apache Software Foundation. All rights reserved.