Class Price
- java.lang.Object
-
- com.github.rvesse.airline.examples.sendit.Price
-
- All Implemented Interfaces:
ExampleRunnable
@Command(name="price", description="Calculates the price for a parcel") public class Price extends java.lang.Object implements ExampleRunnable
-
-
Field Summary
Fields Modifier and Type Field Description private Package
item
private PostalService
service
-
Constructor Summary
Constructors Constructor Description Price()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
run()
Runs the command and returns an exit code that the application should return
-
-
-
Field Detail
-
service
@Option(name={"-s","--service"}, title="Service", description="Specifies the postal service you would like to use") private PostalService service
-
item
@AirlineModule private Package item
-
-
Method Detail
-
run
public int run()
Description copied from interface:ExampleRunnable
Runs the command and returns an exit code that the application should return- Specified by:
run
in interfaceExampleRunnable
- Returns:
- Exit code
-
-