|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.common.util.admin.ParameterMapExtractor
public class ParameterMapExtractor
Extracts a ParameterMap corresponding to the parameters defined on injected objects, such as AdminCommand or CommandParameters implementations.
This can be useful from a supplemental command which needs to create a new command invocation, with parameters similar to its own, for execution on a cluster.
| Constructor Summary | |
|---|---|
ParameterMapExtractor(java.lang.Object... targets)
Creates a new extractor based on the injected values in one or more injected targets, typically AdminCommand or CommandParameters implementations. |
|
| Method Summary | |
|---|---|
ParameterMap |
extract()
Creates a ParameterMap from the @Param fields defined on the injected objects provided in the constructor call. |
ParameterMap |
extract(java.util.Collection<java.lang.String> parameterNamesToExclude)
Creates a ParameterMap from the @Param fields defined on the injected objects provided in the constructor call, excluding selected parameters. |
java.lang.String |
propertiesValue(java.util.Properties props,
char sep)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterMapExtractor(java.lang.Object... targets)
Note that the objects are processed in the order specified, and any values set in later objects will override values that were set from earlier objects.
targets - the objects to inspect for injected @Param values
java.lang.IllegalArgumentException - if a null is passed for the targets| Method Detail |
|---|
public ParameterMap extract()
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
public ParameterMap extract(java.util.Collection<java.lang.String> parameterNamesToExclude)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException
parameterNamesToExclude - parameter names to exclude from the parameter map
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
public java.lang.String propertiesValue(java.util.Properties props,
char sep)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||