/**
 * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.integration.timeseries.snapshot;

import java.util.Map;

import org.joda.beans.BeanBuilder;
import org.joda.beans.BeanDefinition;
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.MetaProperty;
import org.joda.beans.impl.direct.DirectBeanBuilder;
import org.joda.beans.impl.direct.DirectMetaPropertyMap;
import org.springframework.context.support.GenericApplicationContext;

import com.opengamma.component.ComponentFactory;
import com.opengamma.component.ComponentRepository;
import com.opengamma.component.factory.SpringInfrastructureComponentFactory;

/**
 * Component definition for the infrastructure defined in Spring.
 */
@BeanDefinition
public class SpringHtsSnapshotInfrastructureComponentFactory extends SpringInfrastructureComponentFactory implements ComponentFactory {

  /**
   * Registers the infrastructure components.
   * 
   * @param repo  the repository to register with, not null
   * @param appContext  the Spring application context, not null
   */
  protected void register(ComponentRepository repo, GenericApplicationContext appContext) {
    super.register(repo, appContext);
    registerInfrastructureByType(repo, SchemeBlackList.class, appContext);
    registerInfrastructureByType(repo, DataFieldBlackList.class, appContext);
  }
  
  //------------------------- AUTOGENERATED START -------------------------
  ///CLOVER:OFF
  /**
   * The meta-bean for {@code SpringHTSSnapshotInfrastructureComponentFactory}.
   * @return the meta-bean, not null
   */
  public static SpringHtsSnapshotInfrastructureComponentFactory.Meta meta() {
    return SpringHtsSnapshotInfrastructureComponentFactory.Meta.INSTANCE;
  }
  static {
    JodaBeanUtils.registerMetaBean(SpringHtsSnapshotInfrastructureComponentFactory.Meta.INSTANCE);
  }

  @Override
  public SpringHtsSnapshotInfrastructureComponentFactory.Meta metaBean() {
    return SpringHtsSnapshotInfrastructureComponentFactory.Meta.INSTANCE;
  }

  @Override
  protected Object propertyGet(String propertyName, boolean quiet) {
    return super.propertyGet(propertyName, quiet);
  }

  @Override
  protected void propertySet(String propertyName, Object newValue, boolean quiet) {
    super.propertySet(propertyName, newValue, quiet);
  }

  @Override
  public boolean equals(Object obj) {
    if (obj == this) {
      return true;
    }
    if (obj != null && obj.getClass() == this.getClass()) {
      return super.equals(obj);
    }
    return false;
  }

  @Override
  public int hashCode() {
    int hash = 7;
    return hash ^ super.hashCode();
  }

  //-----------------------------------------------------------------------
  /**
   * The meta-bean for {@code SpringHTSSnapshotInfrastructureComponentFactory}.
   */
  public static class Meta extends SpringInfrastructureComponentFactory.Meta {
    /**
     * The singleton instance of the meta-bean.
     */
    static final Meta INSTANCE = new Meta();

    /**
     * The meta-properties.
     */
    private final Map<String, MetaProperty<?>> _metaPropertyMap$ = new DirectMetaPropertyMap(
      this, (DirectMetaPropertyMap) super.metaPropertyMap());

    /**
     * Restricted constructor.
     */
    protected Meta() {
    }

    @Override
    public BeanBuilder<? extends SpringHtsSnapshotInfrastructureComponentFactory> builder() {
      return new DirectBeanBuilder<SpringHtsSnapshotInfrastructureComponentFactory>(new SpringHtsSnapshotInfrastructureComponentFactory());
    }

    @Override
    public Class<? extends SpringHtsSnapshotInfrastructureComponentFactory> beanType() {
      return SpringHtsSnapshotInfrastructureComponentFactory.class;
    }

    @Override
    public Map<String, MetaProperty<?>> metaPropertyMap() {
      return _metaPropertyMap$;
    }

    //-----------------------------------------------------------------------
  }

  ///CLOVER:ON
  //-------------------------- AUTOGENERATED END --------------------------
}

@@ -1549,34 +1549,34 @@
 r %7B@code SpringH
-TS
+ts
 SnapshotInfrastr
@@ -2811,10 +2811,10 @@
 ingH
-TS
+ts
 Snap

Fix class rename in joda-bean generation code