package com.l7tech.server.util;

import java.util.Properties;
import org.springframework.beans.factory.FactoryBean;

public class PropertiesValueFactoryBean implements FactoryBean {
   private final Properties a;
   private final String b;

   public PropertiesValueFactoryBean(Properties var1, String var2) {
      this.a = var1;
      this.b = var2;
   }

   public Object getObject() throws Exception {
      return this.a.getProperty(this.b, "");
   }

   public Class getObjectType() {
      return String.class;
   }

   public boolean isSingleton() {
      return true;
   }
}
