* @param positionSource the position source, null prevents some targets from resolving
*/
public DefaultComputationTargetResolver(final SecuritySource securitySource, final PositionSource positionSource) {
_securitySource = securitySource;
if (securitySource != null) {
addResolver(ComputationTargetType.SECURITY, new SecuritySourceResolver(securitySource));
}
_positionSource = positionSource;
if (positionSource != null) {
final PositionSourceResolver resolver = new PositionSourceResolver(positionSource);
addResolver(ComputationTargetType.PORTFOLIO, new LazyResolver.LazyPortfolioResolver(this, resolver.portfolio()));