[izpack-user] the AutomatedInstallData.getInstance() method disappeared

91 views
Skip to first unread message

Julian Fawcett

unread,
Mar 15, 2013, 12:49:59 PM3/15/13
to us...@izpack.codehaus.org

In 5.0.0-beta11 the AutomatedInstallData.getInstance() method has vanished.

It is not even deprecated - it has completely gone.

 

It was there in 5.0.0-beta1 and was still there in 5.0.0-beta9, but now it is no more.

 

Can anyone explain why it has gone, and what the alternatives are for any code that was relying on it? I have been using it to get the InstallData object from inside one of my custom InstallerListener classes. I can't see any other way of accessing it.

 

Thanks for any help.

 

Joolz


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

Peter Hübner

unread,
Mar 15, 2013, 2:07:01 PM3/15/13
to us...@izpack.codehaus.org
Am 15.03.2013 um 17:49 schrieb Julian Fawcett <Julian....@olmgroup.com>:

In 5.0.0-beta11 the AutomatedInstallData.getInstance() method has vanished.
It is not even deprecated - it has completely gone.

I believe, you can use com.izforge.izpack.api.data.InstallData  as drop in replacement.

regards
Peter

Julian Fawcett

unread,
Mar 15, 2013, 2:19:43 PM3/15/13
to us...@izpack.codehaus.org

Thanks for your reply. I should have mentioned in my original post though that the getInstance() method of com.izforge.izpack.api.data.InstallData also seems to have disappeared.

 

regards

Joolz

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

René Krell

unread,
Mar 15, 2013, 5:25:23 PM3/15/13
to us...@izpack.codehaus.org
5.0 is the result of a refactoring from the root. Picocontainer is used now and instance creation happens in a completely different manner by dependency inhection. Explicit instantiatiom of *InstallData has been removed. The advantages of this approach can be found on picocontainer.org.
Nevertheless, not all essential classes have been migrated to instantiation using picocontainer.
René


2013/3/15 Julian Fawcett <Julian....@olmgroup.com>

Tim Anderson

unread,
Mar 17, 2013, 6:00:30 AM3/17/13
to us...@izpack.codehaus.org
Installer listeners can have most objects injected at construction e.g.:

import com.izforge.izpack.api.data.InstallData;

public class MyListener extends AbstractInstallerListener {

    private final InstallData installData;

    public MyListener(InstallData installData) {
        this.installlData = installData;       
    }
}

-Tim

Julian Fawcett

unread,
Mar 18, 2013, 4:01:16 AM3/18/13
to us...@izpack.codehaus.org

Perfect. Thanks for your help Tim.

 

Joolz

 

From: Tim Anderson [mailto:t...@netspace.net.au]
Sent: 17 March 2013 10:01
To: us...@izpack.codehaus.org
Subject: Re: [izpack-user] the AutomatedInstallData.getInstance() method disappeared

 

Installer listeners can have most objects injected at construction e.g.:

Prashant Pawar

unread,
Apr 11, 2017, 10:33:23 PM4/11/17
to izpack-user, us...@izpack.codehaus.org, Julian....@olmgroup.com
I am upgrading my installer from 4x to 5x. I used automatedInstallData.getInstace in one of my executable class which I am running from process panel.In 5x this API is no more available. How could I solve this issue? I require this instance to get variables as I have to alter the value of some of variable based on some condition.

Thanks
Prashant

Prashant Pawar

unread,
Apr 12, 2017, 11:50:06 AM4/12/17
to izpack-user, us...@izpack.codehaus.org, Julian....@olmgroup.com
Got the answer in another thread by Rene. Thank you.
https://groups.google.com/forum/#!topic/izpack-user/MDqC51YM3sQ

-Prashant
Reply all
Reply to author
Forward
0 new messages