{
public static ConnectionManager create(ConnectionManager.Policy policy)
{
if (policy == ConnectionManager.Policy.CONNECTION_PER_THREAD)
{
return new ConnectionPerThreadManager();
}
else if (policy == ConnectionManager.Policy.SHARED_CONNECTION)
{
return new ConnectionSharedManager();
}