I have a singleton class with private constructor
Example
public class ResourceManagerFactory {
private static ResourceManagerFactory fResourceManagerFactory= new
ResourceManagerFactory();
private ResourceManagerFactory(){
//fResourceManager=
InstanceUtils.newInstance(ServiceConfiguration.getInstance().getParameterValueNarrower(RESOURCE_MANAGER_1,
true).getString());
InstanceUtils.newInstance(ServiceConfiguration.getInstance().getParameterValueNarrower(RESOURCE_MANAGER_2,
true).getString());
InstanceUtils.newInstance(ServiceConfiguration.getInstance().getParameterValueNarrower(RESOURCE_MANAGER_3,
true).getString());
InstanceUtils.newInstance(ServiceConfiguration.getInstance().getParameterValueNarrower(RESOURCE_MANAGER_4,
true).getString());
}
}
I create instance of this class with the first line. Suppose a thread
entered the constructor and its in line 3 at this time can other thread
access this contructor and starts the first line ?
---------------------------------
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.