Hi, 

I want to componentize a class which right now takes some parameters in its 
constructor and that is the only constructor of the class. 

public class A
{
    A(String x, Info object, InetAddress y)
    {
   }
}

So to make it a component, is there some way other than creating a default empty 
constructor and adding some setters/getters defined in the
service exposed by A. 

public class A implements IA
{
    A()
    {
    }

    // setters for this class which are defined in IA
    public void setX(String x); 
    public void setInfo(Info object);
    public void setInetAddress(InetAddress y);
}

public Interface IA
{
    public void setX(String x); 
    public void setInfo(Info object);
    public void setInetAddress(InetAddress y);
}

-Aseem
Fiorano MailServer
All incoming and outgoing mails are scanned for Virus and Spam
http://www.fiorano.com

Reply via email to