## Uses of Interface
com.hammurapi.common.Context

- Packages that use Context
  Package | Description
  --- | ---
  com.hammurapi.common |
  com.hammurapi.common.concurrent |
  com.hammurapi.common.concurrent.transactions |
  com.hammurapi.convert |

- - ### Uses of Context in com.hammurapi.common

    Subinterfaces of Context in com.hammurapi.common
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `MutableContext` Context which can be modified.

    Classes in com.hammurapi.common that implement Context
    Modifier and Type | Class and Description
    --- | ---
    `class` | `CompositeContext` Context delegating to other contexts "parts".
    `class` | `DefaultContext` Default context uses ServiceLoader to find services in a given classloader and map of bindings.
    `class` | `FacadeContext` Simple context implementation.
    `class` | `SimpleMutableContext` Simple context implementation.
    `class` | `SingletonChainingContext<ST>`

    Fields in com.hammurapi.common declared as Context
    Modifier and Type | Field and Description
    --- | ---
    `static Context` | Context.`INSTANCE` Context constructed from all available context services.

    Methods in com.hammurapi.common with parameters of type Context
    Modifier and Type | Method and Description
    --- | ---
    `<T> T` | Adaptable.`getAdapter(Class<T> type, Context context)` Retrieves adapter of given type from adaptable.
    `void` | CompositeContext.`setParts(Context... parts)`

    Constructors in com.hammurapi.common with parameters of type Context
    Constructor and Description
    `CompositeContext(Context... parts)`
    `SimpleMutableContext(Context... chain)`
    `SimpleMutableContext(Map<Class<?>,Collection<?>> services, Map<String,?> bindings, Context... chain)`
    `SingletonChainingContext(Class<ST> type, ST service, Context chain)`

  - ### Uses of Context in com.hammurapi.common.concurrent

    Fields in com.hammurapi.common.concurrent declared as Context
    Modifier and Type | Field and Description
    --- | ---
    `protected Context` | AbstractPropertySet.`context`

    Methods in com.hammurapi.common.concurrent that return Context
    Modifier and Type | Method and Description
    --- | ---
    `Context` | InvocationImpl.`getContext()`
    `Context` | Invocation.`getContext()`

    Methods in com.hammurapi.common.concurrent with parameters of type Context
    Modifier and Type | Method and Description
    --- | ---
    `<T> T` | LocalStringPropertySet.`getAdapter(Class<T> targetType, Context context)`
    `<T> T` | AbstractSubSet.`getAdapter(Class<T> targetType, Context context)`
    `void` | InvocationImpl.`setContext(Context context)`

    Constructors in com.hammurapi.common.concurrent with parameters of type Context
    Constructor and Description
    `AbstractPropertySet(ExecutorService executorService, Converter converter, Context context, PropertySet<KP>... shadows)`
    `InvocationImpl(Object[] arguments, PropertySet<K> propertySet, Context context)`
    `LocalAbstractPropertySet(ExecutorService executorService, Converter converter, Context context, PropertySet<KP>... shadows)`
    `LocalStringPropertySet(ExecutorService executorService, Converter converter, Context context, ClassLoader classLoader, PropertySet<String>... chain)`
    `LocalStringPropertySet(ExecutorService executorService, Converter converter, Context context, String separator, ClassLoader classLoader, PropertySet<String>... chain)`
    `LocalStringPropertySet(ExecutorService executorService, Converter converter, Context context, String separator, ClassLoader classLoader, ReadWriteLock lock, PropertySet<String>... chain)`
    `LocalSynapse(boolean async, ClassLoader classLoader, Converter converter, Context context, long delay, long period, TimeUnit timeUnit, boolean chainPropertySet, String psPrefix)`

  - ### Uses of Context in com.hammurapi.common.concurrent.transactions

    Subinterfaces of Context in com.hammurapi.common.concurrent.transactions
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `ExecutionContext<KP>` Transactional execution context.

    Methods in com.hammurapi.common.concurrent.transactions with parameters of type Context
    Modifier and Type | Method and Description
    --- | ---
    `protected MutableContext` | AbstractTransactionalProcessor.`createContext(ExecutionContext<KP> owner, Context... chain)` Creates mutable context for execution context.
    `PropertySet<KP>` | AbstractTransactionalProcessor.`createPropertySet(Context context, PropertySet<KP>... chain)`
    `protected abstract PropertySet<KP>` | AbstractTransactionalProcessor.`createPropertySet(ExecutorService executorService, Context context, PropertySet<KP>... chain)`
    `protected PropertySet<String>` | StandaloneTransactionalProcessor.`createPropertySet(ExecutorService executorService, Context context, PropertySet<String>... chain)`
    `<V> Future<V>` | ExecutionContext.`execute(Command<KP,V> command, Context context, PropertySet<KP> properties, Object... args)` Executes command either in the same thread on in a background thread but in the context of the same transaction.
    `<V> V` | AbstractTransactionalProcessor.`process(Command<KP,V> command, Context context, PropertySet<KP> propertySet, Object... args)` Transactionally processes the command.

  - ### Uses of Context in com.hammurapi.convert

    Methods in com.hammurapi.convert with parameters of type Context
    Modifier and Type | Method and Description
    --- | ---
    `static <S,T> T` | ConvertingService.`convert(S source, Class<T> targetType, Context context)` Converts source to target type using Java 6 service loading for AtomicConverterBundle, AtomicConverter, and Converter services If no converter is found, this method performs converter discovery through constructors if target type is a class and through duck conversion if target type is an interface.
    `<S,T> T` | Converter.`convert(S source, Class<T> targetType, Context context)` Converts object to requested target type.
    `static <S,T> T` | ConvertingService.`convert(S source, Class<T> targetType, Context context, ClassLoader classLoader)` Converts source to target type using Java 6 service loading for AtomicConverterBundle, AtomicConverter, and Converter services If no converter is found, this method performs converter discovery through constructors if target type is a class and through duck conversion if target type is an interface.
    `<S,T> T` | SingletonConverterPart.`convert(S source, Class<T> targetType, Context context, Converter master)`
    `<S,T> T` | FutureConverterPart.`convert(S source, Class<T> targetType, Context context, Converter master)`
    `<S,T> T` | ConverterPart.`convert(S source, Class<T> targetType, Context context, Converter master)` Converts object to requested target type.
    `<S,T> T` | CallableConverterPart.`convert(S source, Class<T> targetType, Context context, Converter master)`
    `T` | ReflectionConverter.`convert(S source, Converter master, Context context, ClassLoader classLoader)`
    `T` | AtomicConverter.`convert(S source, Converter master, Context context, ClassLoader classLoader)` Converts object to target type.
    `static Object` | DecoratingService.`decorate(Object obj, Context context)` Decorates object using static decoration providers from the object's class classloader.
    `static Object` | DecoratingService.`decorate(Object obj, Context context, ClassLoader classLoader)` Decorates object using given context for dynamic decorators and given class loader to load decorating providers.
    `Object` | AtomicDecorator.`decorate(S source, Context context, Decorator<?,?> master)` Creates decoration.
    `static <S,T> ConverterClosure<S,T>` | ConvertingService.`getConverter(Class<S> sourceType, Class<T> targetType, Context context)` Converts source to target type using Java 6 service loading for AtomicConverterBundle, AtomicConverter, and Converter services If no converter is found, this method performs converter discovery through constructors if target type is a class and through duck conversion if target type is an interface.
    `static <S,T> ConverterClosure<S,T>` | ConvertingService.`getConverter(Class<S> sourceType, Class<T> targetType, Context context, ClassLoader classLoader)` Converts source to target type using Java 6 service loading for AtomicConverterBundle, AtomicConverter, and Converter services If no converter is found, this method performs converter discovery through constructors if target type is a class and through duck conversion if target type is an interface.
    `static Decorator` | DecoratingService.`getDecorator(Context context)` Creates decorating closure.
    `static Decorator` | DecoratingService.`getDecorator(Context context, ClassLoader classLoader)` Creates decorating closure.