|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.screamingcoder.plebeians.beans.ParamsFactory
@ApplicationScoped @Named public class ParamsFactory
The simple bean that will hold the command line arguments and make them available by injection (using the @Params binding). It's initialised by the StartMain class before your main app is initialised.
| Constructor Summary | |
|---|---|
ParamsFactory()
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getArgs()
Producer method for the injectible command line args. |
void |
setArgs(java.lang.String[] args)
StartMain passes in the command line args here. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParamsFactory()
| Method Detail |
|---|
@Produces public java.lang.String[] getArgs()
public void setArgs(java.lang.String[] args)
args - The command line arguments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||