Merge branch 'feature/factory_impl' into develop
This commit is contained in:
commit
c81e2b0332
@ -59,18 +59,20 @@ public class NodeFactory
|
||||
case Customer:
|
||||
n = new Customer(startMoney);
|
||||
break;
|
||||
default:
|
||||
}
|
||||
|
||||
String[] subs = subsChannels.split(";");
|
||||
|
||||
for (String s : subs)
|
||||
if (n != null)
|
||||
{
|
||||
String[] el = s.split(" ");
|
||||
String[] subs = subsChannels.split(";");
|
||||
for (String s : subs)
|
||||
{
|
||||
String[] el = s.split(" ");
|
||||
|
||||
ChannelPool temp = FoodChain.getFactoryManager().getPoolDatabaseInstance().getChannelPoolInstance();
|
||||
n.subscribeToChannel(temp.findByType(ProductType.valueOf(el[0])), ChannelSubscriptionType.valueOf(el[1]));
|
||||
ChannelPool temp = FoodChain.getFactoryManager().getPoolDatabaseInstance().getChannelPoolInstance();
|
||||
n.subscribeToChannel(temp.findByType(ProductType.valueOf(el[0])), ChannelSubscriptionType.valueOf(el[1]));
|
||||
}
|
||||
}
|
||||
|
||||
return n;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user