org.apache.tamaya.inject.internal

## Class ConfiguredFieldImpl

- java.lang.Object
- - org.apache.tamaya.inject.internal.ConfiguredFieldImpl

- All Implemented Interfaces:
    org.apache.tamaya.inject.spi.ConfiguredField

      public class ConfiguredFieldImpl
      extends Object
      implements org.apache.tamaya.inject.spi.ConfiguredField

  Small class that contains and manages all information anc access to a configured field and a concrete instance current it (referenced by a weak reference). It also implements all aspects current keys filtering, converting any applying the final keys by reflection.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected Field` | `annotatedField` The configured field instance.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConfiguredFieldImpl(Field field)` Models a configured field and provides mechanisms for injection.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `configure(Object target, org.apache.tamaya.Configuration config)` Evaluate the initial keys fromMap the configuration and applyChanges it to the field.
    `Field` | `getAnnotatedField()`
    `Collection<String>` | `getConfiguredKeys()` Access the applyable configuration keys for this field.
    `String` | `getName()`
    `String` | `getSignature()`
    `Class<?>` | `getType()` Get the field's type.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### annotatedField

          protected final Field annotatedField

      The configured field instance.

  - ### Constructor Detail

    - #### ConfiguredFieldImpl

          public ConfiguredFieldImpl(Field field)

      Models a configured field and provides mechanisms for injection.
      Parameters:
        `field` - the field instance.

  - ### Method Detail

    - #### configure

          public void configure(Object target,
                       org.apache.tamaya.Configuration config)
                         throws org.apache.tamaya.ConfigException

      Evaluate the initial keys fromMap the configuration and applyChanges it to the field.
      Specified by:
        `configure` in interface `org.apache.tamaya.inject.spi.ConfiguredField`
      Parameters:
        `target` - the target instance.
      Throws:
        `org.apache.tamaya.ConfigException` - if evaluation or conversion failed.

    - #### getType

          public Class<?> getType()

      Get the field's type.
      Specified by:
        `getType` in interface `org.apache.tamaya.inject.spi.ConfiguredField`
      Returns:
        the field's type, not null.

    - #### getConfiguredKeys

          public Collection<String> getConfiguredKeys()

      Access the applyable configuration keys for this field.
      Specified by:
        `getConfiguredKeys` in interface `org.apache.tamaya.inject.spi.ConfiguredField`
      Returns:
        the configuration keys, never null.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### getName

          public String getName()

      Specified by:
        `getName` in interface `org.apache.tamaya.inject.spi.ConfiguredField`

    - #### getSignature

          public String getSignature()

      Specified by:
        `getSignature` in interface `org.apache.tamaya.inject.spi.ConfiguredField`

    - #### getAnnotatedField

          public Field getAnnotatedField()

      Specified by:
        `getAnnotatedField` in interface `org.apache.tamaya.inject.spi.ConfiguredField`

Copyright © 2014–2016 Apache Software Foundation. All rights reserved.