|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.environment.se.beans.ParametersFactory
@ApplicationScoped public class ParametersFactory
The simple bean that will hold the command line arguments and make them available by injection (using the @Parameters binding). It's initialised by the StartMain class before your main app is initialised.
| Constructor Summary | |
|---|---|
ParametersFactory()
|
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getArgs()
Producer method for the injectable command line args. |
java.lang.String[] |
getArgsAsArray()
Producer method for the injectable 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 ParametersFactory()
| Method Detail |
|---|
@Produces public java.util.List<java.lang.String> getArgs()
@Produces public java.lang.String[] getArgsAsArray()
public void setArgs(java.lang.String[] args)
args - The command line arguments. If null is given then an empty
array will be used instead.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||