Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

MethodDescription
<T> T get(final Class<T> type, final String path);

Creates an object of class type and maps it from a resource from under specified path

<T> T get(final Class<T> type, final Resource resource);Creates an object of class type and maps it from the resource
<T> T get(com.google.inject.Key<T> key, Resource resource) 
<T> T get(com.google.inject.Key<T> key, String path) throws ClassNotFoundException; 
<T> List<T> getChildModels(Class<T> type, Resource parentResource) 

<T> List<T> getChildModels(Class<T> type, String parentPath);

 
Object get(final String className, final String path) throws ClassNotFoundException;Creates an object of a class defined by specified className String and maps it from a resource from under specified path
Object get(String className, Resource resource); 
<T> List<T> getList(final Class<T> type, final Iterator<String> paths);Creates a list of objects of class type and maps them accordingly from resources from under paths defined by paths interator.
<T> List<T> getList(final Class<T> type, final String[] paths);

Creates a list of objects of class type and maps them accordingly from resources from under paths defined by paths array.

<T> List<T> getListFromResources(Class<T> type, Iterator<Resource> resources); 

ModelProvider can be injected to your models, so that you can read a model from an arbitrary resource or path, e.g.:

...