com.screamingcoder.plebeians.beans
Class ParamsFactory

java.lang.Object
  extended by com.screamingcoder.plebeians.beans.ParamsFactory

@ApplicationScoped
@Named
public class ParamsFactory
extends java.lang.Object

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

ParamsFactory

public ParamsFactory()
Default constructor.

Method Detail

getArgs

@Produces
public java.lang.String[] getArgs()
Producer method for the injectible command line args.

Returns:
The command line arguments.

setArgs

public void setArgs(java.lang.String[] args)
StartMain passes in the command line args here.

Parameters:
args - The command line arguments.