|
Forge - Resource Addon API 2.0.0.Alpha3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
RESOURCETYPE - The Resource type generated by this implementation.UNDERLYINGTYPE - The Class type of underlying object handled by Resource instances produced by
this implementation.public interface ResourceGenerator<RESOURCETYPE,UNDERLYINGTYPE>
Defines the mechanism for registering new Resource types.
| Method Summary | ||
|---|---|---|
|
getResource(ResourceFactory factory,
Class<RESOURCETYPE> type,
UNDERLYINGTYPE resource)
Get an instance of a Resource to handle the given Class type and object instance. |
|
|
getResourceType(Class<RESOURCETYPE> type,
UNDERLYINGTYPE resource)
Get the Resource type that will be generated for the given Class type and object instance. |
|
boolean |
handles(Class<?> type,
Object resource)
Returns true if the given object instance and Class type are handled by this ResourceGenerator |
|
| Method Detail |
|---|
boolean handles(Class<?> type,
Object resource)
Class type are handled by this ResourceGenerator
<T extends Resource<UNDERLYINGTYPE>> T getResource(ResourceFactory factory,
Class<RESOURCETYPE> type,
UNDERLYINGTYPE resource)
Resource to handle the given Class type and object instance.
<T extends Resource<UNDERLYINGTYPE>> Class<?> getResourceType(Class<RESOURCETYPE> type,
UNDERLYINGTYPE resource)
Resource type that will be generated for the given Class type and object instance.
|
Forge - Resource Addon API 2.0.0.Alpha3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||