org.apache.cayenne.di

## Interface AdhocObjectFactory

- All Known Implementing Classes:
    DefaultAdhocObjectFactory

      public interface AdhocObjectFactory

  Creates objects for user-provided String class names, injecting dependencies into them.
  Since:
    3.1

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T> T` | `newInstance(Class<? super T> superType, String className)` Returns an instance of "className" that implements "superType", injecting dependencies from the registry into it.

- - ### Method Detail

    - #### newInstance

          <T> T newInstance(Class<? super T> superType,
                            String className)

      Returns an instance of "className" that implements "superType", injecting dependencies from the registry into it.

Copyright © 2001–2018 Apache Cayenne. All rights reserved.