@java.lang.SuppressWarnings(value: deprecation) @groovy.transform.CompileStatic class LegacyApplicationCommandAdapter extends java.lang.Object implements ApplicationCommand, ApplicationCommandTargetAware, Ordered
Adapts a Grails 7 command contract to the Grails 8 CLI contract.
| Type | Name and description |
|---|---|
ConfigurableApplicationContext |
applicationContext |
| Constructor and description |
|---|
LegacyApplicationCommandAdapter(ApplicationCommand legacyCommand) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
ConfigurableApplicationContext |
getApplicationContext() |
|
java.lang.String |
getDescription() |
|
java.lang.String |
getName() |
|
int |
getOrder()The order declared by the adapted Grails 7 command, so that commands ordered through the Spring conventions keep deciding duplicate command names as they did on Grails 7. |
|
java.lang.Object |
getTarget() |
|
boolean |
handle(ExecutionContext executionContext) |
|
void |
setApplicationContext(ConfigurableApplicationContext applicationContext) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
The order declared by the adapted Grails 7 command, so that commands ordered through the Spring conventions keep deciding duplicate command names as they did on Grails 7.