ConvertersApi (Grails 3.1.4)
Date: 2016-03-16

Package: org.grails.plugins.converters.api

## [Java] Class ConvertersApi

- org.grails.plugins.converters.api.ConvertersApi

- All Implemented Interfaces and Traits:
    org.springframework.context.ApplicationContextAware

      public class ConvertersApi
      extends java.lang.Object

  The API for converting objects to target types such as XML.

  Authors:
    Graeme Rocher
  Since:
    2.0

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `java.lang.Object` | `asType(java.lang.Object instance, java.lang.Class<?> clazz)` Converter an instance from one format to another
    `org.springframework.context.ApplicationContext` | `getApplicationContext()`
    `void` | `setApplicationContext(org.springframework.context.ApplicationContext applicationContext)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Method Detail

    - #### public java.lang.Object asType(java.lang.Object instance, java.lang.Class<?> clazz)

      Converter an instance from one format to another

      Parameters:
        `instance` - The instance
        `clazz` - The type to convert to
      Returns:
        the converted object

    - #### public org.springframework.context.ApplicationContext getApplicationContext()

    - #### public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)