/** * Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.component.factory.tool; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import org.joda.beans.Bean; import org.joda.beans.BeanBuilder; import org.joda.beans.BeanDefinition; import org.joda.beans.JodaBeanUtils; import org.joda.beans.MetaProperty; import org.joda.beans.Property; import org.joda.beans.PropertyDefinition; import org.joda.beans.impl.direct.DirectBeanBuilder; import org.joda.beans.impl.direct.DirectMetaProperty; import org.joda.beans.impl.direct.DirectMetaPropertyMap; import com.opengamma.component.ComponentRepository; import com.opengamma.component.factory.AbstractComponentFactory; import com.opengamma.core.config.ConfigSource; import com.opengamma.core.convention.ConventionSource; import com.opengamma.core.exchange.ExchangeSource; import com.opengamma.core.historicaltimeseries.HistoricalTimeSeriesSource; import com.opengamma.core.holiday.HolidaySource; import com.opengamma.core.legalentity.LegalEntitySource; import com.opengamma.core.marketdatasnapshot.MarketDataSnapshotSource; import com.opengamma.core.position.PositionSource; import com.opengamma.core.region.RegionSource; import com.opengamma.core.security.SecuritySource; import com.opengamma.engine.view.ViewProcessor; import com.opengamma.financial.convention.ConventionBundleSource; import com.opengamma.financial.tool.ToolContext; import com.opengamma.master.config.ConfigMaster; import com.opengamma.master.convention.ConventionMaster; import com.opengamma.master.exchange.ExchangeMaster; import com.opengamma.master.historicaltimeseries.HistoricalTimeSeriesLoader; import com.opengamma.master.historicaltimeseries.HistoricalTimeSeriesMaster; import com.opengamma.master.holiday.HolidayMaster; import com.opengamma.master.legalentity.LegalEntityMaster; import com.opengamma.master.marketdatasnapshot.MarketDataSnapshotMaster; import com.opengamma.master.portfolio.PortfolioMaster; import com.opengamma.master.position.PositionMaster; import com.opengamma.master.region.RegionMaster; import com.opengamma.master.security.SecurityLoader; import com.opengamma.master.security.SecurityMaster; import com.opengamma.provider.historicaltimeseries.HistoricalTimeSeriesProvider; import com.opengamma.provider.security.SecurityProvider; /** * Component factory for setting up a tool context. */ @BeanDefinition public class ToolContextComponentFactory extends AbstractComponentFactory { /** * The classifier. */ @PropertyDefinition private String _classifier; /** * The config master. */ @PropertyDefinition private ConfigMaster _configMaster; /** * The exchange master. */ @PropertyDefinition private ExchangeMaster _exchangeMaster; /** * The holiday master. */ @PropertyDefinition private HolidayMaster _holidayMaster; /** * The region master. */ @PropertyDefinition private RegionMaster _regionMaster; /** * The security master. */ @PropertyDefinition private SecurityMaster _securityMaster; /** * The convention master. */ @PropertyDefinition private ConventionMaster _conventionMaster; /** * The legal entity master. */ @PropertyDefinition private LegalEntityMaster _legalEntityMaster; /** * The position master. */ @PropertyDefinition private PositionMaster _positionMaster; /** * The portfolio master. */ @PropertyDefinition private PortfolioMaster _portfolioMaster; /** * The historical time-series master. */ @PropertyDefinition private HistoricalTimeSeriesMaster _historicalTimeSeriesMaster; /** * The snapshot master. */ @PropertyDefinition private MarketDataSnapshotMaster _marketDataSnapshotMaster; /** * The config source. */ @PropertyDefinition private ConfigSource _configSource; /** * The exchange source. */ @PropertyDefinition private ExchangeSource _exchangeSource; /** * The holiday source. */ @PropertyDefinition private HolidaySource _holidaySource; /** * The region source. */ @PropertyDefinition private RegionSource _regionSource; /** * The security source. */ @PropertyDefinition private SecuritySource _securitySource; /** * The position source. */ @PropertyDefinition private PositionSource _positionSource; /** * The organization source. */ @PropertyDefinition private LegalEntitySource _legalEntitySource; /** * The historical time-series source. */ @PropertyDefinition private HistoricalTimeSeriesSource _historicalTimeSeriesSource; /** * The snapshot source. */ @PropertyDefinition private MarketDataSnapshotSource _marketDataSnapshotSource; /** * The convention bundle source. */ @PropertyDefinition private ConventionBundleSource _conventionBundleSource; /** * The convention source. */ @PropertyDefinition private ConventionSource _conventionSource; /** * The security provider. */ @PropertyDefinition private SecurityProvider _securityProvider; /** * The security loader. */ @PropertyDefinition private SecurityLoader _securityLoader; /** * The time-series provider. */ @PropertyDefinition private HistoricalTimeSeriesProvider _historicalTimeSeriesProvider; /** * The time-series loader. */ @PropertyDefinition private HistoricalTimeSeriesLoader _historicalTimeSeriesLoader; /** * The view processor. */ @PropertyDefinition private ViewProcessor _viewProcessor; //------------------------------------------------------------------------- @Override public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) { ToolContext context = createToolContext(); Map<String, MetaProperty<?>> mapTarget = new HashMap<String, MetaProperty<?>>(context.metaBean().metaPropertyMap()); mapTarget.keySet().retainAll(this.metaBean().metaPropertyMap().keySet()); for (MetaProperty<?> mp : mapTarget.values()) { mp.set(context, mp.get(this)); } context.setContextManager(repo); repo.registerComponent(ToolContext.class, getClassifier(), context); } /** * Creates an empty instance of the tool context. * * @return the empty tool context, not null */ protected ToolContext createToolContext() { return new ToolContext(); } //------------------------- AUTOGENERATED START ------------------------- ///CLOVER:OFF /** * The meta-bean for {@code ToolContextComponentFactory}. * @return the meta-bean, not null */ public static ToolContextComponentFactory.Meta meta() { return ToolContextComponentFactory.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(ToolContextComponentFactory.Meta.INSTANCE); } @Override public ToolContextComponentFactory.Meta metaBean() { return ToolContextComponentFactory.Meta.INSTANCE; } //----------------------------------------------------------------------- /** * Gets the classifier. * @return the value of the property */ public String getClassifier() { return _classifier; } /** * Sets the classifier. * @param classifier the new value of the property */ public void setClassifier(String classifier) { this._classifier = classifier; } /** * Gets the the {@code classifier} property. * @return the property, not null */ public final Property<String> classifier() { return metaBean().classifier().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the config master. * @return the value of the property */ public ConfigMaster getConfigMaster() { return _configMaster; } /** * Sets the config master. * @param configMaster the new value of the property */ public void setConfigMaster(ConfigMaster configMaster) { this._configMaster = configMaster; } /** * Gets the the {@code configMaster} property. * @return the property, not null */ public final Property<ConfigMaster> configMaster() { return metaBean().configMaster().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the exchange master. * @return the value of the property */ public ExchangeMaster getExchangeMaster() { return _exchangeMaster; } /** * Sets the exchange master. * @param exchangeMaster the new value of the property */ public void setExchangeMaster(ExchangeMaster exchangeMaster) { this._exchangeMaster = exchangeMaster; } /** * Gets the the {@code exchangeMaster} property. * @return the property, not null */ public final Property<ExchangeMaster> exchangeMaster() { return metaBean().exchangeMaster().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the holiday master. * @return the value of the property */ public HolidayMaster getHolidayMaster() { return _holidayMaster; } /** * Sets the holiday master. * @param holidayMaster the new value of the property */ public void setHolidayMaster(HolidayMaster holidayMaster) { this._holidayMaster = holidayMaster; } /** * Gets the the {@code holidayMaster} property. * @return the property, not null */ public final Property<HolidayMaster> holidayMaster() { return metaBean().holidayMaster().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the region master. * @return the value of the property */ public RegionMaster getRegionMaster() { return _regionMaster; } /** * Sets the region master. * @param regionMaster the new value of the property */ public void setRegionMaster(RegionMaster regionMaster) { this._regionMaster = regionMaster; } /** * Gets the the {@code regionMaster} property. * @return the property, not null */ public final Property<RegionMaster> regionMaster() { return metaBean().regionMaster().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the security master. * @return the value of the property */ public SecurityMaster getSecurityMaster() { return _securityMaster; } /** * Sets the security master. * @param securityMaster the new value of the property */ public void setSecurityMaster(SecurityMaster securityMaster) { this._securityMaster = securityMaster; } /** * Gets the the {@code securityMaster} property. * @return the property, not null */ public final Property<SecurityMaster> securityMaster() { return metaBean().securityMaster().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the convention master. * @return the value of the property */ public ConventionMaster getConventionMaster() { return _conventionMaster; } /** * Sets the convention master. * @param conventionMaster the new value of the property */ public void setConventionMaster(ConventionMaster conventionMaster) { this._conventionMaster = conventionMaster; } /** * Gets the the {@code conventionMaster} property. * @return the property, not null */ public final Property<ConventionMaster> conventionMaster() { return metaBean().conventionMaster().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the legal entity master. * @return the value of the property */ public LegalEntityMaster getLegalEntityMaster() { return _legalEntityMaster; } /** * Sets the legal entity master. * @param legalEntityMaster the new value of the property */ public void setLegalEntityMaster(LegalEntityMaster legalEntityMaster) { this._legalEntityMaster = legalEntityMaster; } /** * Gets the the {@code legalEntityMaster} property. * @return the property, not null */ public final Property<LegalEntityMaster> legalEntityMaster() { return metaBean().legalEntityMaster().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the position master. * @return the value of the property */ public PositionMaster getPositionMaster() { return _positionMaster; } /** * Sets the position master. * @param positionMaster the new value of the property */ public void setPositionMaster(PositionMaster positionMaster) { this._positionMaster = positionMaster; } /** * Gets the the {@code positionMaster} property. * @return the property, not null */ public final Property<PositionMaster> positionMaster() { return metaBean().positionMaster().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the portfolio master. * @return the value of the property */ public PortfolioMaster getPortfolioMaster() { return _portfolioMaster; } /** * Sets the portfolio master. * @param portfolioMaster the new value of the property */ public void setPortfolioMaster(PortfolioMaster portfolioMaster) { this._portfolioMaster = portfolioMaster; } /** * Gets the the {@code portfolioMaster} property. * @return the property, not null */ public final Property<PortfolioMaster> portfolioMaster() { return metaBean().portfolioMaster().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the historical time-series master. * @return the value of the property */ public HistoricalTimeSeriesMaster getHistoricalTimeSeriesMaster() { return _historicalTimeSeriesMaster; } /** * Sets the historical time-series master. * @param historicalTimeSeriesMaster the new value of the property */ public void setHistoricalTimeSeriesMaster(HistoricalTimeSeriesMaster historicalTimeSeriesMaster) { this._historicalTimeSeriesMaster = historicalTimeSeriesMaster; } /** * Gets the the {@code historicalTimeSeriesMaster} property. * @return the property, not null */ public final Property<HistoricalTimeSeriesMaster> historicalTimeSeriesMaster() { return metaBean().historicalTimeSeriesMaster().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the snapshot master. * @return the value of the property */ public MarketDataSnapshotMaster getMarketDataSnapshotMaster() { return _marketDataSnapshotMaster; } /** * Sets the snapshot master. * @param marketDataSnapshotMaster the new value of the property */ public void setMarketDataSnapshotMaster(MarketDataSnapshotMaster marketDataSnapshotMaster) { this._marketDataSnapshotMaster = marketDataSnapshotMaster; } /** * Gets the the {@code marketDataSnapshotMaster} property. * @return the property, not null */ public final Property<MarketDataSnapshotMaster> marketDataSnapshotMaster() { return metaBean().marketDataSnapshotMaster().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the config source. * @return the value of the property */ public ConfigSource getConfigSource() { return _configSource; } /** * Sets the config source. * @param configSource the new value of the property */ public void setConfigSource(ConfigSource configSource) { this._configSource = configSource; } /** * Gets the the {@code configSource} property. * @return the property, not null */ public final Property<ConfigSource> configSource() { return metaBean().configSource().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the exchange source. * @return the value of the property */ public ExchangeSource getExchangeSource() { return _exchangeSource; } /** * Sets the exchange source. * @param exchangeSource the new value of the property */ public void setExchangeSource(ExchangeSource exchangeSource) { this._exchangeSource = exchangeSource; } /** * Gets the the {@code exchangeSource} property. * @return the property, not null */ public final Property<ExchangeSource> exchangeSource() { return metaBean().exchangeSource().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the holiday source. * @return the value of the property */ public HolidaySource getHolidaySource() { return _holidaySource; } /** * Sets the holiday source. * @param holidaySource the new value of the property */ public void setHolidaySource(HolidaySource holidaySource) { this._holidaySource = holidaySource; } /** * Gets the the {@code holidaySource} property. * @return the property, not null */ public final Property<HolidaySource> holidaySource() { return metaBean().holidaySource().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the region source. * @return the value of the property */ public RegionSource getRegionSource() { return _regionSource; } /** * Sets the region source. * @param regionSource the new value of the property */ public void setRegionSource(RegionSource regionSource) { this._regionSource = regionSource; } /** * Gets the the {@code regionSource} property. * @return the property, not null */ public final Property<RegionSource> regionSource() { return metaBean().regionSource().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the security source. * @return the value of the property */ public SecuritySource getSecuritySource() { return _securitySource; } /** * Sets the security source. * @param securitySource the new value of the property */ public void setSecuritySource(SecuritySource securitySource) { this._securitySource = securitySource; } /** * Gets the the {@code securitySource} property. * @return the property, not null */ public final Property<SecuritySource> securitySource() { return metaBean().securitySource().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the position source. * @return the value of the property */ public PositionSource getPositionSource() { return _positionSource; } /** * Sets the position source. * @param positionSource the new value of the property */ public void setPositionSource(PositionSource positionSource) { this._positionSource = positionSource; } /** * Gets the the {@code positionSource} property. * @return the property, not null */ public final Property<PositionSource> positionSource() { return metaBean().positionSource().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the organization source. * @return the value of the property */ public LegalEntitySource getLegalEntitySource() { return _legalEntitySource; } /** * Sets the organization source. * @param legalEntitySource the new value of the property */ public void setLegalEntitySource(LegalEntitySource legalEntitySource) { this._legalEntitySource = legalEntitySource; } /** * Gets the the {@code legalEntitySource} property. * @return the property, not null */ public final Property<LegalEntitySource> legalEntitySource() { return metaBean().legalEntitySource().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the historical time-series source. * @return the value of the property */ public HistoricalTimeSeriesSource getHistoricalTimeSeriesSource() { return _historicalTimeSeriesSource; } /** * Sets the historical time-series source. * @param historicalTimeSeriesSource the new value of the property */ public void setHistoricalTimeSeriesSource(HistoricalTimeSeriesSource historicalTimeSeriesSource) { this._historicalTimeSeriesSource = historicalTimeSeriesSource; } /** * Gets the the {@code historicalTimeSeriesSource} property. * @return the property, not null */ public final Property<HistoricalTimeSeriesSource> historicalTimeSeriesSource() { return metaBean().historicalTimeSeriesSource().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the snapshot source. * @return the value of the property */ public MarketDataSnapshotSource getMarketDataSnapshotSource() { return _marketDataSnapshotSource; } /** * Sets the snapshot source. * @param marketDataSnapshotSource the new value of the property */ public void setMarketDataSnapshotSource(MarketDataSnapshotSource marketDataSnapshotSource) { this._marketDataSnapshotSource = marketDataSnapshotSource; } /** * Gets the the {@code marketDataSnapshotSource} property. * @return the property, not null */ public final Property<MarketDataSnapshotSource> marketDataSnapshotSource() { return metaBean().marketDataSnapshotSource().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the convention bundle source. * @return the value of the property */ public ConventionBundleSource getConventionBundleSource() { return _conventionBundleSource; } /** * Sets the convention bundle source. * @param conventionBundleSource the new value of the property */ public void setConventionBundleSource(ConventionBundleSource conventionBundleSource) { this._conventionBundleSource = conventionBundleSource; } /** * Gets the the {@code conventionBundleSource} property. * @return the property, not null */ public final Property<ConventionBundleSource> conventionBundleSource() { return metaBean().conventionBundleSource().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the convention source. * @return the value of the property */ public ConventionSource getConventionSource() { return _conventionSource; } /** * Sets the convention source. * @param conventionSource the new value of the property */ public void setConventionSource(ConventionSource conventionSource) { this._conventionSource = conventionSource; } /** * Gets the the {@code conventionSource} property. * @return the property, not null */ public final Property<ConventionSource> conventionSource() { return metaBean().conventionSource().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the security provider. * @return the value of the property */ public SecurityProvider getSecurityProvider() { return _securityProvider; } /** * Sets the security provider. * @param securityProvider the new value of the property */ public void setSecurityProvider(SecurityProvider securityProvider) { this._securityProvider = securityProvider; } /** * Gets the the {@code securityProvider} property. * @return the property, not null */ public final Property<SecurityProvider> securityProvider() { return metaBean().securityProvider().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the security loader. * @return the value of the property */ public SecurityLoader getSecurityLoader() { return _securityLoader; } /** * Sets the security loader. * @param securityLoader the new value of the property */ public void setSecurityLoader(SecurityLoader securityLoader) { this._securityLoader = securityLoader; } /** * Gets the the {@code securityLoader} property. * @return the property, not null */ public final Property<SecurityLoader> securityLoader() { return metaBean().securityLoader().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the time-series provider. * @return the value of the property */ public HistoricalTimeSeriesProvider getHistoricalTimeSeriesProvider() { return _historicalTimeSeriesProvider; } /** * Sets the time-series provider. * @param historicalTimeSeriesProvider the new value of the property */ public void setHistoricalTimeSeriesProvider(HistoricalTimeSeriesProvider historicalTimeSeriesProvider) { this._historicalTimeSeriesProvider = historicalTimeSeriesProvider; } /** * Gets the the {@code historicalTimeSeriesProvider} property. * @return the property, not null */ public final Property<HistoricalTimeSeriesProvider> historicalTimeSeriesProvider() { return metaBean().historicalTimeSeriesProvider().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the time-series loader. * @return the value of the property */ public HistoricalTimeSeriesLoader getHistoricalTimeSeriesLoader() { return _historicalTimeSeriesLoader; } /** * Sets the time-series loader. * @param historicalTimeSeriesLoader the new value of the property */ public void setHistoricalTimeSeriesLoader(HistoricalTimeSeriesLoader historicalTimeSeriesLoader) { this._historicalTimeSeriesLoader = historicalTimeSeriesLoader; } /** * Gets the the {@code historicalTimeSeriesLoader} property. * @return the property, not null */ public final Property<HistoricalTimeSeriesLoader> historicalTimeSeriesLoader() { return metaBean().historicalTimeSeriesLoader().createProperty(this); } //----------------------------------------------------------------------- /** * Gets the view processor. * @return the value of the property */ public ViewProcessor getViewProcessor() { return _viewProcessor; } /** * Sets the view processor. * @param viewProcessor the new value of the property */ public void setViewProcessor(ViewProcessor viewProcessor) { this._viewProcessor = viewProcessor; } /** * Gets the the {@code viewProcessor} property. * @return the property, not null */ public final Property<ViewProcessor> viewProcessor() { return metaBean().viewProcessor().createProperty(this); } //----------------------------------------------------------------------- @Override public ToolContextComponentFactory clone() { return JodaBeanUtils.cloneAlways(this); } @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj != null && obj.getClass() == this.getClass()) { ToolContextComponentFactory other = (ToolContextComponentFactory) obj; return JodaBeanUtils.equal(getClassifier(), other.getClassifier()) && JodaBeanUtils.equal(getConfigMaster(), other.getConfigMaster()) && JodaBeanUtils.equal(getExchangeMaster(), other.getExchangeMaster()) && JodaBeanUtils.equal(getHolidayMaster(), other.getHolidayMaster()) && JodaBeanUtils.equal(getRegionMaster(), other.getRegionMaster()) && JodaBeanUtils.equal(getSecurityMaster(), other.getSecurityMaster()) && JodaBeanUtils.equal(getConventionMaster(), other.getConventionMaster()) && JodaBeanUtils.equal(getLegalEntityMaster(), other.getLegalEntityMaster()) && JodaBeanUtils.equal(getPositionMaster(), other.getPositionMaster()) && JodaBeanUtils.equal(getPortfolioMaster(), other.getPortfolioMaster()) && JodaBeanUtils.equal(getHistoricalTimeSeriesMaster(), other.getHistoricalTimeSeriesMaster()) && JodaBeanUtils.equal(getMarketDataSnapshotMaster(), other.getMarketDataSnapshotMaster()) && JodaBeanUtils.equal(getConfigSource(), other.getConfigSource()) && JodaBeanUtils.equal(getExchangeSource(), other.getExchangeSource()) && JodaBeanUtils.equal(getHolidaySource(), other.getHolidaySource()) && JodaBeanUtils.equal(getRegionSource(), other.getRegionSource()) && JodaBeanUtils.equal(getSecuritySource(), other.getSecuritySource()) && JodaBeanUtils.equal(getPositionSource(), other.getPositionSource()) && JodaBeanUtils.equal(getLegalEntitySource(), other.getLegalEntitySource()) && JodaBeanUtils.equal(getHistoricalTimeSeriesSource(), other.getHistoricalTimeSeriesSource()) && JodaBeanUtils.equal(getMarketDataSnapshotSource(), other.getMarketDataSnapshotSource()) && JodaBeanUtils.equal(getConventionBundleSource(), other.getConventionBundleSource()) && JodaBeanUtils.equal(getConventionSource(), other.getConventionSource()) && JodaBeanUtils.equal(getSecurityProvider(), other.getSecurityProvider()) && JodaBeanUtils.equal(getSecurityLoader(), other.getSecurityLoader()) && JodaBeanUtils.equal(getHistoricalTimeSeriesProvider(), other.getHistoricalTimeSeriesProvider()) && JodaBeanUtils.equal(getHistoricalTimeSeriesLoader(), other.getHistoricalTimeSeriesLoader()) && JodaBeanUtils.equal(getViewProcessor(), other.getViewProcessor()) && super.equals(obj); } return false; } @Override public int hashCode() { int hash = 7; hash = hash * 31 + JodaBeanUtils.hashCode(getClassifier()); hash = hash * 31 + JodaBeanUtils.hashCode(getConfigMaster()); hash = hash * 31 + JodaBeanUtils.hashCode(getExchangeMaster()); hash = hash * 31 + JodaBeanUtils.hashCode(getHolidayMaster()); hash = hash * 31 + JodaBeanUtils.hashCode(getRegionMaster()); hash = hash * 31 + JodaBeanUtils.hashCode(getSecurityMaster()); hash = hash * 31 + JodaBeanUtils.hashCode(getConventionMaster()); hash = hash * 31 + JodaBeanUtils.hashCode(getLegalEntityMaster()); hash = hash * 31 + JodaBeanUtils.hashCode(getPositionMaster()); hash = hash * 31 + JodaBeanUtils.hashCode(getPortfolioMaster()); hash = hash * 31 + JodaBeanUtils.hashCode(getHistoricalTimeSeriesMaster()); hash = hash * 31 + JodaBeanUtils.hashCode(getMarketDataSnapshotMaster()); hash = hash * 31 + JodaBeanUtils.hashCode(getConfigSource()); hash = hash * 31 + JodaBeanUtils.hashCode(getExchangeSource()); hash = hash * 31 + JodaBeanUtils.hashCode(getHolidaySource()); hash = hash * 31 + JodaBeanUtils.hashCode(getRegionSource()); hash = hash * 31 + JodaBeanUtils.hashCode(getSecuritySource()); hash = hash * 31 + JodaBeanUtils.hashCode(getPositionSource()); hash = hash * 31 + JodaBeanUtils.hashCode(getLegalEntitySource()); hash = hash * 31 + JodaBeanUtils.hashCode(getHistoricalTimeSeriesSource()); hash = hash * 31 + JodaBeanUtils.hashCode(getMarketDataSnapshotSource()); hash = hash * 31 + JodaBeanUtils.hashCode(getConventionBundleSource()); hash = hash * 31 + JodaBeanUtils.hashCode(getConventionSource()); hash = hash * 31 + JodaBeanUtils.hashCode(getSecurityProvider()); hash = hash * 31 + JodaBeanUtils.hashCode(getSecurityLoader()); hash = hash * 31 + JodaBeanUtils.hashCode(getHistoricalTimeSeriesProvider()); hash = hash * 31 + JodaBeanUtils.hashCode(getHistoricalTimeSeriesLoader()); hash = hash * 31 + JodaBeanUtils.hashCode(getViewProcessor()); return hash ^ super.hashCode(); } @Override public String toString() { StringBuilder buf = new StringBuilder(928); buf.append("ToolContextComponentFactory{"); int len = buf.length(); toString(buf); if (buf.length() > len) { buf.setLength(buf.length() - 2); } buf.append('}'); return buf.toString(); } @Override protected void toString(StringBuilder buf) { super.toString(buf); buf.append("classifier").append('=').append(JodaBeanUtils.toString(getClassifier())).append(',').append(' '); buf.append("configMaster").append('=').append(JodaBeanUtils.toString(getConfigMaster())).append(',').append(' '); buf.append("exchangeMaster").append('=').append(JodaBeanUtils.toString(getExchangeMaster())).append(',').append(' '); buf.append("holidayMaster").append('=').append(JodaBeanUtils.toString(getHolidayMaster())).append(',').append(' '); buf.append("regionMaster").append('=').append(JodaBeanUtils.toString(getRegionMaster())).append(',').append(' '); buf.append("securityMaster").append('=').append(JodaBeanUtils.toString(getSecurityMaster())).append(',').append(' '); buf.append("conventionMaster").append('=').append(JodaBeanUtils.toString(getConventionMaster())).append(',').append(' '); buf.append("legalEntityMaster").append('=').append(JodaBeanUtils.toString(getLegalEntityMaster())).append(',').append(' '); buf.append("positionMaster").append('=').append(JodaBeanUtils.toString(getPositionMaster())).append(',').append(' '); buf.append("portfolioMaster").append('=').append(JodaBeanUtils.toString(getPortfolioMaster())).append(',').append(' '); buf.append("historicalTimeSeriesMaster").append('=').append(JodaBeanUtils.toString(getHistoricalTimeSeriesMaster())).append(',').append(' '); buf.append("marketDataSnapshotMaster").append('=').append(JodaBeanUtils.toString(getMarketDataSnapshotMaster())).append(',').append(' '); buf.append("configSource").append('=').append(JodaBeanUtils.toString(getConfigSource())).append(',').append(' '); buf.append("exchangeSource").append('=').append(JodaBeanUtils.toString(getExchangeSource())).append(',').append(' '); buf.append("holidaySource").append('=').append(JodaBeanUtils.toString(getHolidaySource())).append(',').append(' '); buf.append("regionSource").append('=').append(JodaBeanUtils.toString(getRegionSource())).append(',').append(' '); buf.append("securitySource").append('=').append(JodaBeanUtils.toString(getSecuritySource())).append(',').append(' '); buf.append("positionSource").append('=').append(JodaBeanUtils.toString(getPositionSource())).append(',').append(' '); buf.append("legalEntitySource").append('=').append(JodaBeanUtils.toString(getLegalEntitySource())).append(',').append(' '); buf.append("historicalTimeSeriesSource").append('=').append(JodaBeanUtils.toString(getHistoricalTimeSeriesSource())).append(',').append(' '); buf.append("marketDataSnapshotSource").append('=').append(JodaBeanUtils.toString(getMarketDataSnapshotSource())).append(',').append(' '); buf.append("conventionBundleSource").append('=').append(JodaBeanUtils.toString(getConventionBundleSource())).append(',').append(' '); buf.append("conventionSource").append('=').append(JodaBeanUtils.toString(getConventionSource())).append(',').append(' '); buf.append("securityProvider").append('=').append(JodaBeanUtils.toString(getSecurityProvider())).append(',').append(' '); buf.append("securityLoader").append('=').append(JodaBeanUtils.toString(getSecurityLoader())).append(',').append(' '); buf.append("historicalTimeSeriesProvider").append('=').append(JodaBeanUtils.toString(getHistoricalTimeSeriesProvider())).append(',').append(' '); buf.append("historicalTimeSeriesLoader").append('=').append(JodaBeanUtils.toString(getHistoricalTimeSeriesLoader())).append(',').append(' '); buf.append("viewProcessor").append('=').append(JodaBeanUtils.toString(getViewProcessor())).append(',').append(' '); } //----------------------------------------------------------------------- /** * The meta-bean for {@code ToolContextComponentFactory}. */ public static class Meta extends AbstractComponentFactory.Meta { /** * The singleton instance of the meta-bean. */ static final Meta INSTANCE = new Meta(); /** * The meta-property for the {@code classifier} property. */ private final MetaProperty<String> _classifier = DirectMetaProperty.ofReadWrite( this, "classifier", ToolContextComponentFactory.class, String.class); /** * The meta-property for the {@code configMaster} property. */ private final MetaProperty<ConfigMaster> _configMaster = DirectMetaProperty.ofReadWrite( this, "configMaster", ToolContextComponentFactory.class, ConfigMaster.class); /** * The meta-property for the {@code exchangeMaster} property. */ private final MetaProperty<ExchangeMaster> _exchangeMaster = DirectMetaProperty.ofReadWrite( this, "exchangeMaster", ToolContextComponentFactory.class, ExchangeMaster.class); /** * The meta-property for the {@code holidayMaster} property. */ private final MetaProperty<HolidayMaster> _holidayMaster = DirectMetaProperty.ofReadWrite( this, "holidayMaster", ToolContextComponentFactory.class, HolidayMaster.class); /** * The meta-property for the {@code regionMaster} property. */ private final MetaProperty<RegionMaster> _regionMaster = DirectMetaProperty.ofReadWrite( this, "regionMaster", ToolContextComponentFactory.class, RegionMaster.class); /** * The meta-property for the {@code securityMaster} property. */ private final MetaProperty<SecurityMaster> _securityMaster = DirectMetaProperty.ofReadWrite( this, "securityMaster", ToolContextComponentFactory.class, SecurityMaster.class); /** * The meta-property for the {@code conventionMaster} property. */ private final MetaProperty<ConventionMaster> _conventionMaster = DirectMetaProperty.ofReadWrite( this, "conventionMaster", ToolContextComponentFactory.class, ConventionMaster.class); /** * The meta-property for the {@code legalEntityMaster} property. */ private final MetaProperty<LegalEntityMaster> _legalEntityMaster = DirectMetaProperty.ofReadWrite( this, "legalEntityMaster", ToolContextComponentFactory.class, LegalEntityMaster.class); /** * The meta-property for the {@code positionMaster} property. */ private final MetaProperty<PositionMaster> _positionMaster = DirectMetaProperty.ofReadWrite( this, "positionMaster", ToolContextComponentFactory.class, PositionMaster.class); /** * The meta-property for the {@code portfolioMaster} property. */ private final MetaProperty<PortfolioMaster> _portfolioMaster = DirectMetaProperty.ofReadWrite( this, "portfolioMaster", ToolContextComponentFactory.class, PortfolioMaster.class); /** * The meta-property for the {@code historicalTimeSeriesMaster} property. */ private final MetaProperty<HistoricalTimeSeriesMaster> _historicalTimeSeriesMaster = DirectMetaProperty.ofReadWrite( this, "historicalTimeSeriesMaster", ToolContextComponentFactory.class, HistoricalTimeSeriesMaster.class); /** * The meta-property for the {@code marketDataSnapshotMaster} property. */ private final MetaProperty<MarketDataSnapshotMaster> _marketDataSnapshotMaster = DirectMetaProperty.ofReadWrite( this, "marketDataSnapshotMaster", ToolContextComponentFactory.class, MarketDataSnapshotMaster.class); /** * The meta-property for the {@code configSource} property. */ private final MetaProperty<ConfigSource> _configSource = DirectMetaProperty.ofReadWrite( this, "configSource", ToolContextComponentFactory.class, ConfigSource.class); /** * The meta-property for the {@code exchangeSource} property. */ private final MetaProperty<ExchangeSource> _exchangeSource = DirectMetaProperty.ofReadWrite( this, "exchangeSource", ToolContextComponentFactory.class, ExchangeSource.class); /** * The meta-property for the {@code holidaySource} property. */ private final MetaProperty<HolidaySource> _holidaySource = DirectMetaProperty.ofReadWrite( this, "holidaySource", ToolContextComponentFactory.class, HolidaySource.class); /** * The meta-property for the {@code regionSource} property. */ private final MetaProperty<RegionSource> _regionSource = DirectMetaProperty.ofReadWrite( this, "regionSource", ToolContextComponentFactory.class, RegionSource.class); /** * The meta-property for the {@code securitySource} property. */ private final MetaProperty<SecuritySource> _securitySource = DirectMetaProperty.ofReadWrite( this, "securitySource", ToolContextComponentFactory.class, SecuritySource.class); /** * The meta-property for the {@code positionSource} property. */ private final MetaProperty<PositionSource> _positionSource = DirectMetaProperty.ofReadWrite( this, "positionSource", ToolContextComponentFactory.class, PositionSource.class); /** * The meta-property for the {@code legalEntitySource} property. */ private final MetaProperty<LegalEntitySource> _legalEntitySource = DirectMetaProperty.ofReadWrite( this, "legalEntitySource", ToolContextComponentFactory.class, LegalEntitySource.class); /** * The meta-property for the {@code historicalTimeSeriesSource} property. */ private final MetaProperty<HistoricalTimeSeriesSource> _historicalTimeSeriesSource = DirectMetaProperty.ofReadWrite( this, "historicalTimeSeriesSource", ToolContextComponentFactory.class, HistoricalTimeSeriesSource.class); /** * The meta-property for the {@code marketDataSnapshotSource} property. */ private final MetaProperty<MarketDataSnapshotSource> _marketDataSnapshotSource = DirectMetaProperty.ofReadWrite( this, "marketDataSnapshotSource", ToolContextComponentFactory.class, MarketDataSnapshotSource.class); /** * The meta-property for the {@code conventionBundleSource} property. */ private final MetaProperty<ConventionBundleSource> _conventionBundleSource = DirectMetaProperty.ofReadWrite( this, "conventionBundleSource", ToolContextComponentFactory.class, ConventionBundleSource.class); /** * The meta-property for the {@code conventionSource} property. */ private final MetaProperty<ConventionSource> _conventionSource = DirectMetaProperty.ofReadWrite( this, "conventionSource", ToolContextComponentFactory.class, ConventionSource.class); /** * The meta-property for the {@code securityProvider} property. */ private final MetaProperty<SecurityProvider> _securityProvider = DirectMetaProperty.ofReadWrite( this, "securityProvider", ToolContextComponentFactory.class, SecurityProvider.class); /** * The meta-property for the {@code securityLoader} property. */ private final MetaProperty<SecurityLoader> _securityLoader = DirectMetaProperty.ofReadWrite( this, "securityLoader", ToolContextComponentFactory.class, SecurityLoader.class); /** * The meta-property for the {@code historicalTimeSeriesProvider} property. */ private final MetaProperty<HistoricalTimeSeriesProvider> _historicalTimeSeriesProvider = DirectMetaProperty.ofReadWrite( this, "historicalTimeSeriesProvider", ToolContextComponentFactory.class, HistoricalTimeSeriesProvider.class); /** * The meta-property for the {@code historicalTimeSeriesLoader} property. */ private final MetaProperty<HistoricalTimeSeriesLoader> _historicalTimeSeriesLoader = DirectMetaProperty.ofReadWrite( this, "historicalTimeSeriesLoader", ToolContextComponentFactory.class, HistoricalTimeSeriesLoader.class); /** * The meta-property for the {@code viewProcessor} property. */ private final MetaProperty<ViewProcessor> _viewProcessor = DirectMetaProperty.ofReadWrite( this, "viewProcessor", ToolContextComponentFactory.class, ViewProcessor.class); /** * The meta-properties. */ private final Map<String, MetaProperty<?>> _metaPropertyMap$ = new DirectMetaPropertyMap( this, (DirectMetaPropertyMap) super.metaPropertyMap(), "classifier", "configMaster", "exchangeMaster", "holidayMaster", "regionMaster", "securityMaster", "conventionMaster", "legalEntityMaster", "positionMaster", "portfolioMaster", "historicalTimeSeriesMaster", "marketDataSnapshotMaster", "configSource", "exchangeSource", "holidaySource", "regionSource", "securitySource", "positionSource", "legalEntitySource", "historicalTimeSeriesSource", "marketDataSnapshotSource", "conventionBundleSource", "conventionSource", "securityProvider", "securityLoader", "historicalTimeSeriesProvider", "historicalTimeSeriesLoader", "viewProcessor"); /** * Restricted constructor. */ protected Meta() { } @Override protected MetaProperty<?> metaPropertyGet(String propertyName) { switch (propertyName.hashCode()) { case -281470431: // classifier return _classifier; case 10395716: // configMaster return _configMaster; case -652001691: // exchangeMaster return _exchangeMaster; case 246258906: // holidayMaster return _holidayMaster; case -1820969354: // regionMaster return _regionMaster; case -887218750: // securityMaster return _securityMaster; case 41113907: // conventionMaster return _conventionMaster; case -1944474242: // legalEntityMaster return _legalEntityMaster; case -1840419605: // positionMaster return _positionMaster; case -772274742: // portfolioMaster return _portfolioMaster; case 173967376: // historicalTimeSeriesMaster return _historicalTimeSeriesMaster; case 2090650860: // marketDataSnapshotMaster return _marketDataSnapshotMaster; case 195157501: // configSource return _configSource; case -467239906: // exchangeSource return _exchangeSource; case 431020691: // holidaySource return _holidaySource; case -1636207569: // regionSource return _regionSource; case -702456965: // securitySource return _securitySource; case -1655657820: // positionSource return _positionSource; case -1759712457: // legalEntitySource return _legalEntitySource; case 358729161: // historicalTimeSeriesSource return _historicalTimeSeriesSource; case -2019554651: // marketDataSnapshotSource return _marketDataSnapshotSource; case -1281578674: // conventionBundleSource return _conventionBundleSource; case 225875692: // conventionSource return _conventionSource; case 809869649: // securityProvider return _securityProvider; case -903470221: // securityLoader return _securityLoader; case -1592479713: // historicalTimeSeriesProvider return _historicalTimeSeriesProvider; case 157715905: // historicalTimeSeriesLoader return _historicalTimeSeriesLoader; case -1697555603: // viewProcessor return _viewProcessor; } return super.metaPropertyGet(propertyName); } @Override public BeanBuilder<? extends ToolContextComponentFactory> builder() { return new DirectBeanBuilder<ToolContextComponentFactory>(new ToolContextComponentFactory()); } @Override public Class<? extends ToolContextComponentFactory> beanType() { return ToolContextComponentFactory.class; } @Override public Map<String, MetaProperty<?>> metaPropertyMap() { return _metaPropertyMap$; } //----------------------------------------------------------------------- /** * The meta-property for the {@code classifier} property. * @return the meta-property, not null */ public final MetaProperty<String> classifier() { return _classifier; } /** * The meta-property for the {@code configMaster} property. * @return the meta-property, not null */ public final MetaProperty<ConfigMaster> configMaster() { return _configMaster; } /** * The meta-property for the {@code exchangeMaster} property. * @return the meta-property, not null */ public final MetaProperty<ExchangeMaster> exchangeMaster() { return _exchangeMaster; } /** * The meta-property for the {@code holidayMaster} property. * @return the meta-property, not null */ public final MetaProperty<HolidayMaster> holidayMaster() { return _holidayMaster; } /** * The meta-property for the {@code regionMaster} property. * @return the meta-property, not null */ public final MetaProperty<RegionMaster> regionMaster() { return _regionMaster; } /** * The meta-property for the {@code securityMaster} property. * @return the meta-property, not null */ public final MetaProperty<SecurityMaster> securityMaster() { return _securityMaster; } /** * The meta-property for the {@code conventionMaster} property. * @return the meta-property, not null */ public final MetaProperty<ConventionMaster> conventionMaster() { return _conventionMaster; } /** * The meta-property for the {@code legalEntityMaster} property. * @return the meta-property, not null */ public final MetaProperty<LegalEntityMaster> legalEntityMaster() { return _legalEntityMaster; } /** * The meta-property for the {@code positionMaster} property. * @return the meta-property, not null */ public final MetaProperty<PositionMaster> positionMaster() { return _positionMaster; } /** * The meta-property for the {@code portfolioMaster} property. * @return the meta-property, not null */ public final MetaProperty<PortfolioMaster> portfolioMaster() { return _portfolioMaster; } /** * The meta-property for the {@code historicalTimeSeriesMaster} property. * @return the meta-property, not null */ public final MetaProperty<HistoricalTimeSeriesMaster> historicalTimeSeriesMaster() { return _historicalTimeSeriesMaster; } /** * The meta-property for the {@code marketDataSnapshotMaster} property. * @return the meta-property, not null */ public final MetaProperty<MarketDataSnapshotMaster> marketDataSnapshotMaster() { return _marketDataSnapshotMaster; } /** * The meta-property for the {@code configSource} property. * @return the meta-property, not null */ public final MetaProperty<ConfigSource> configSource() { return _configSource; } /** * The meta-property for the {@code exchangeSource} property. * @return the meta-property, not null */ public final MetaProperty<ExchangeSource> exchangeSource() { return _exchangeSource; } /** * The meta-property for the {@code holidaySource} property. * @return the meta-property, not null */ public final MetaProperty<HolidaySource> holidaySource() { return _holidaySource; } /** * The meta-property for the {@code regionSource} property. * @return the meta-property, not null */ public final MetaProperty<RegionSource> regionSource() { return _regionSource; } /** * The meta-property for the {@code securitySource} property. * @return the meta-property, not null */ public final MetaProperty<SecuritySource> securitySource() { return _securitySource; } /** * The meta-property for the {@code positionSource} property. * @return the meta-property, not null */ public final MetaProperty<PositionSource> positionSource() { return _positionSource; } /** * The meta-property for the {@code legalEntitySource} property. * @return the meta-property, not null */ public final MetaProperty<LegalEntitySource> legalEntitySource() { return _legalEntitySource; } /** * The meta-property for the {@code historicalTimeSeriesSource} property. * @return the meta-property, not null */ public final MetaProperty<HistoricalTimeSeriesSource> historicalTimeSeriesSource() { return _historicalTimeSeriesSource; } /** * The meta-property for the {@code marketDataSnapshotSource} property. * @return the meta-property, not null */ public final MetaProperty<MarketDataSnapshotSource> marketDataSnapshotSource() { return _marketDataSnapshotSource; } /** * The meta-property for the {@code conventionBundleSource} property. * @return the meta-property, not null */ public final MetaProperty<ConventionBundleSource> conventionBundleSource() { return _conventionBundleSource; } /** * The meta-property for the {@code conventionSource} property. * @return the meta-property, not null */ public final MetaProperty<ConventionSource> conventionSource() { return _conventionSource; } /** * The meta-property for the {@code securityProvider} property. * @return the meta-property, not null */ public final MetaProperty<SecurityProvider> securityProvider() { return _securityProvider; } /** * The meta-property for the {@code securityLoader} property. * @return the meta-property, not null */ public final MetaProperty<SecurityLoader> securityLoader() { return _securityLoader; } /** * The meta-property for the {@code historicalTimeSeriesProvider} property. * @return the meta-property, not null */ public final MetaProperty<HistoricalTimeSeriesProvider> historicalTimeSeriesProvider() { return _historicalTimeSeriesProvider; } /** * The meta-property for the {@code historicalTimeSeriesLoader} property. * @return the meta-property, not null */ public final MetaProperty<HistoricalTimeSeriesLoader> historicalTimeSeriesLoader() { return _historicalTimeSeriesLoader; } /** * The meta-property for the {@code viewProcessor} property. * @return the meta-property, not null */ public final MetaProperty<ViewProcessor> viewProcessor() { return _viewProcessor; } //----------------------------------------------------------------------- @Override protected Object propertyGet(Bean bean, String propertyName, boolean quiet) { switch (propertyName.hashCode()) { case -281470431: // classifier return ((ToolContextComponentFactory) bean).getClassifier(); case 10395716: // configMaster return ((ToolContextComponentFactory) bean).getConfigMaster(); case -652001691: // exchangeMaster return ((ToolContextComponentFactory) bean).getExchangeMaster(); case 246258906: // holidayMaster return ((ToolContextComponentFactory) bean).getHolidayMaster(); case -1820969354: // regionMaster return ((ToolContextComponentFactory) bean).getRegionMaster(); case -887218750: // securityMaster return ((ToolContextComponentFactory) bean).getSecurityMaster(); case 41113907: // conventionMaster return ((ToolContextComponentFactory) bean).getConventionMaster(); case -1944474242: // legalEntityMaster return ((ToolContextComponentFactory) bean).getLegalEntityMaster(); case -1840419605: // positionMaster return ((ToolContextComponentFactory) bean).getPositionMaster(); case -772274742: // portfolioMaster return ((ToolContextComponentFactory) bean).getPortfolioMaster(); case 173967376: // historicalTimeSeriesMaster return ((ToolContextComponentFactory) bean).getHistoricalTimeSeriesMaster(); case 2090650860: // marketDataSnapshotMaster return ((ToolContextComponentFactory) bean).getMarketDataSnapshotMaster(); case 195157501: // configSource return ((ToolContextComponentFactory) bean).getConfigSource(); case -467239906: // exchangeSource return ((ToolContextComponentFactory) bean).getExchangeSource(); case 431020691: // holidaySource return ((ToolContextComponentFactory) bean).getHolidaySource(); case -1636207569: // regionSource return ((ToolContextComponentFactory) bean).getRegionSource(); case -702456965: // securitySource return ((ToolContextComponentFactory) bean).getSecuritySource(); case -1655657820: // positionSource return ((ToolContextComponentFactory) bean).getPositionSource(); case -1759712457: // legalEntitySource return ((ToolContextComponentFactory) bean).getLegalEntitySource(); case 358729161: // historicalTimeSeriesSource return ((ToolContextComponentFactory) bean).getHistoricalTimeSeriesSource(); case -2019554651: // marketDataSnapshotSource return ((ToolContextComponentFactory) bean).getMarketDataSnapshotSource(); case -1281578674: // conventionBundleSource return ((ToolContextComponentFactory) bean).getConventionBundleSource(); case 225875692: // conventionSource return ((ToolContextComponentFactory) bean).getConventionSource(); case 809869649: // securityProvider return ((ToolContextComponentFactory) bean).getSecurityProvider(); case -903470221: // securityLoader return ((ToolContextComponentFactory) bean).getSecurityLoader(); case -1592479713: // historicalTimeSeriesProvider return ((ToolContextComponentFactory) bean).getHistoricalTimeSeriesProvider(); case 157715905: // historicalTimeSeriesLoader return ((ToolContextComponentFactory) bean).getHistoricalTimeSeriesLoader(); case -1697555603: // viewProcessor return ((ToolContextComponentFactory) bean).getViewProcessor(); } return super.propertyGet(bean, propertyName, quiet); } @Override protected void propertySet(Bean bean, String propertyName, Object newValue, boolean quiet) { switch (propertyName.hashCode()) { case -281470431: // classifier ((ToolContextComponentFactory) bean).setClassifier((String) newValue); return; case 10395716: // configMaster ((ToolContextComponentFactory) bean).setConfigMaster((ConfigMaster) newValue); return; case -652001691: // exchangeMaster ((ToolContextComponentFactory) bean).setExchangeMaster((ExchangeMaster) newValue); return; case 246258906: // holidayMaster ((ToolContextComponentFactory) bean).setHolidayMaster((HolidayMaster) newValue); return; case -1820969354: // regionMaster ((ToolContextComponentFactory) bean).setRegionMaster((RegionMaster) newValue); return; case -887218750: // securityMaster ((ToolContextComponentFactory) bean).setSecurityMaster((SecurityMaster) newValue); return; case 41113907: // conventionMaster ((ToolContextComponentFactory) bean).setConventionMaster((ConventionMaster) newValue); return; case -1944474242: // legalEntityMaster ((ToolContextComponentFactory) bean).setLegalEntityMaster((LegalEntityMaster) newValue); return; case -1840419605: // positionMaster ((ToolContextComponentFactory) bean).setPositionMaster((PositionMaster) newValue); return; case -772274742: // portfolioMaster ((ToolContextComponentFactory) bean).setPortfolioMaster((PortfolioMaster) newValue); return; case 173967376: // historicalTimeSeriesMaster ((ToolContextComponentFactory) bean).setHistoricalTimeSeriesMaster((HistoricalTimeSeriesMaster) newValue); return; case 2090650860: // marketDataSnapshotMaster ((ToolContextComponentFactory) bean).setMarketDataSnapshotMaster((MarketDataSnapshotMaster) newValue); return; case 195157501: // configSource ((ToolContextComponentFactory) bean).setConfigSource((ConfigSource) newValue); return; case -467239906: // exchangeSource ((ToolContextComponentFactory) bean).setExchangeSource((ExchangeSource) newValue); return; case 431020691: // holidaySource ((ToolContextComponentFactory) bean).setHolidaySource((HolidaySource) newValue); return; case -1636207569: // regionSource ((ToolContextComponentFactory) bean).setRegionSource((RegionSource) newValue); return; case -702456965: // securitySource ((ToolContextComponentFactory) bean).setSecuritySource((SecuritySource) newValue); return; case -1655657820: // positionSource ((ToolContextComponentFactory) bean).setPositionSource((PositionSource) newValue); return; case -1759712457: // legalEntitySource ((ToolContextComponentFactory) bean).setLegalEntitySource((LegalEntitySource) newValue); return; case 358729161: // historicalTimeSeriesSource ((ToolContextComponentFactory) bean).setHistoricalTimeSeriesSource((HistoricalTimeSeriesSource) newValue); return; case -2019554651: // marketDataSnapshotSource ((ToolContextComponentFactory) bean).setMarketDataSnapshotSource((MarketDataSnapshotSource) newValue); return; case -1281578674: // conventionBundleSource ((ToolContextComponentFactory) bean).setConventionBundleSource((ConventionBundleSource) newValue); return; case 225875692: // conventionSource ((ToolContextComponentFactory) bean).setConventionSource((ConventionSource) newValue); return; case 809869649: // securityProvider ((ToolContextComponentFactory) bean).setSecurityProvider((SecurityProvider) newValue); return; case -903470221: // securityLoader ((ToolContextComponentFactory) bean).setSecurityLoader((SecurityLoader) newValue); return; case -1592479713: // historicalTimeSeriesProvider ((ToolContextComponentFactory) bean).setHistoricalTimeSeriesProvider((HistoricalTimeSeriesProvider) newValue); return; case 157715905: // historicalTimeSeriesLoader ((ToolContextComponentFactory) bean).setHistoricalTimeSeriesLoader((HistoricalTimeSeriesLoader) newValue); return; case -1697555603: // viewProcessor ((ToolContextComponentFactory) bean).setViewProcessor((ViewProcessor) newValue); return; } super.propertySet(bean, propertyName, newValue, quiet); } } ///CLOVER:ON //-------------------------- AUTOGENERATED END -------------------------- }