Examples of ConfigType


Examples of br.gov.frameworkdemoiselle.configuration.ConfigType

  }

  private void loadField(Field field, Object object, Class<?> clazz) {
    if (!field.isAnnotationPresent(Ignore.class) && clazz.isAnnotationPresent(Configuration.class)) {
      String resource = clazz.getAnnotation(Configuration.class).resource();
      ConfigType type = clazz.getAnnotation(Configuration.class).type();
      org.apache.commons.configuration.Configuration config = getConfiguration(resource, type);

      if (config != null) {
        String key = getKey(field, clazz, config);
        Object value = getValue(key, field, config);
View Full Code Here

Examples of br.gov.frameworkdemoiselle.configuration.ConfigType

  }

  private void loadField(Field field, Object object, Class<?> clazz) {
    if (!field.isAnnotationPresent(Ignore.class) && clazz.isAnnotationPresent(Configuration.class)) {
      String resource = clazz.getAnnotation(Configuration.class).resource();
      ConfigType type = clazz.getAnnotation(Configuration.class).type();
      org.apache.commons.configuration.Configuration config = getConfiguration(resource, type);

      if (config != null) {
        String key = getKey(field, clazz, config);
        Object value = getValue(key, field, config);
View Full Code Here

Examples of br.gov.frameworkdemoiselle.configuration.ConfigType

  }

  private void loadField(Field field, Object object, Class<?> clazz) {
    if (!field.isAnnotationPresent(Ignore.class) && clazz.isAnnotationPresent(Configuration.class)) {
      String resource = clazz.getAnnotation(Configuration.class).resource();
      ConfigType type = clazz.getAnnotation(Configuration.class).type();
      org.apache.commons.configuration.Configuration config = getConfiguration(resource, type);

      if (config != null) {
        String key = getKey(field, clazz, config);
        Object value = getValue(key, field, config);
View Full Code Here

Examples of br.gov.frameworkdemoiselle.configuration.ConfigType

  }

  private void loadField(Field field, Object object, Class<?> clazz) {
    if (!field.isAnnotationPresent(Ignore.class) && clazz.isAnnotationPresent(Configuration.class)) {
      String resource = clazz.getAnnotation(Configuration.class).resource();
      ConfigType type = clazz.getAnnotation(Configuration.class).type();
      org.apache.commons.configuration.Configuration config = getConfiguration(resource, type);

      if (config != null) {
        Key key = new Key(field, clazz, config);
        Object value = getValue(key, field, config);
View Full Code Here

Examples of br.gov.frameworkdemoiselle.configuration.ConfigType

  }

  private void loadField(Field field, Object object, Class<?> clazz) {
    if (!field.isAnnotationPresent(Ignore.class) && clazz.isAnnotationPresent(Configuration.class)) {
      String resource = clazz.getAnnotation(Configuration.class).resource();
      ConfigType type = clazz.getAnnotation(Configuration.class).type();
      org.apache.commons.configuration.Configuration config = getConfiguration(resource, type);

      if (config != null) {
        String key = getKey(field, clazz, config);
        Object value = getValue(key, field, config);
View Full Code Here

Examples of com.caucho.config.type.ConfigType

    else {
      throw new SQLExceptionWrapper(L.l("driver '{0}' has not been configured for pool {1}.  <database> needs either a <data-source> or a <type>.",
                                        _driverClass, getDBPool().getName()));
    }

    ConfigType configType = TypeFactory.getType(driverObject);

    // server/14g1
    if (_driverURL != null) {
      if (! configType.setProperty(driverObject, URL, _driverURL)) {
  if (! (driverObject instanceof Driver)) {
    throw new ConfigException(L.l("database: 'url' is an unknown property of '{0}'",
          driverObject.getClass().getName()));
  }
      }
    }
   
    if (_user != null) {
      if (! configType.setProperty(driverObject, USER, _user)) {
  if (! (driverObject instanceof Driver)) {
    throw new ConfigException(L.l("database: 'user' is an unknown property of '{0}'",
          driverObject.getClass().getName()));
  }
      }
    }
   
    if (_password != null) {
      if (! configType.setProperty(driverObject, PASSWORD, _password)) {
  if (! (driverObject instanceof Driver)) {
    throw new ConfigException(L.l("database: 'password' is an unknown property of '{0}'",
          driverObject.getClass().getName()));
  }
      }
View Full Code Here

Examples of com.caucho.config.type.ConfigType

  public static void init(Object bean)
    throws ConfigException
  {
    try {
      ConfigType type = TypeFactory.getType(bean.getClass());

      type.init(bean);
    } catch (RuntimeException e) {
      throw e;
    } catch (Exception e) {
      throw ConfigException.create(e);
    }
View Full Code Here

Examples of com.caucho.config.type.ConfigType

  public static void inject(Object bean)
    throws ConfigException
  {
    try {
      ConfigType type = TypeFactory.getType(bean.getClass());

      type.inject(bean);
    } catch (RuntimeException e) {
      throw e;
    } catch (Exception e) {
      throw ConfigException.create(e);
    }
View Full Code Here

Examples of com.caucho.config.type.ConfigType

    }
  }

  public static Object replaceObject(Object bean) throws Exception
  {
    ConfigType type = TypeFactory.getType(bean.getClass());

    return type.replaceObject(bean);
  }
View Full Code Here

Examples of org.apache.tuscany.sca.demos.aggregator.types.ConfigType

        // only get the latest alerts
        Date now = new Date();
        String nowString = dateFormatter.format(now);
             
        try {
            ConfigType alertSourceConfig = alertsSources.getAlertSources(id);
           
            for (Object source : alertSourceConfig.getSource()){
                SourceType sourceType = (SourceType)source;
               
                AlertsType alerts = null;
               
                if ( sourceType.getFeedType().equals("rss")){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.