-
1. Re: Optional input for AbstractSimpleVFSRealDeployer
adrian.brock Jul 9, 2007 1:41 PM (in response to wolfc)The real answer is that the annotations should be parsed to create an
ApplicationClientDD before hitting your deployer.
You're going to need something like eventually so you can create
a ManagedObject for the profile service to use.
The longer answer is that you can't do that with the AbstractSimpleVFSRealDeployer.
You'll have to write an AbstractMoreComplicatedVFSRealDeployer :-)
What you are really asking for is something that does
setInputs(ApplicationClientDD.class) (optional input) instead of setInput(ApplicationClientDD.class) a requirement.
But then you'll have to be careful about the "deployment" being null
and this code in AbstractSimpleRealDeployerpublic void deploy(DeploymentUnit unit) throws DeploymentException { T deployment = unit.getAttachment(getInput()); if (deployment != null) { // Set the deployer type unit.getTypes().add(getType()); deploy(unit, deployment); } }
You don't want the deployment unit getting tagged as an appclient if it is not! :-) -
2. Re: Optional input for AbstractSimpleVFSRealDeployer
adrian.brock Jul 11, 2007 4:55 PM (in response to wolfc)Is there a reason why didn't commit your AbstractOptionalVFSRealDeployer to
the deployers project so that others don't have to "reinvent the wheel"? -
3. Re: Optional input for AbstractSimpleVFSRealDeployer
wolfc Jul 12, 2007 4:25 AM (in response to wolfc)No, no rational one. I want to see it work first and worry about details later.