T - the object to transform into a XWiki ResourceU - the return type (e.g. Resource, EntityResource, etc)@Role
@Unstable
public interface ResourceFactory<T,U extends Resource>
Resource instance.| Modifier and Type | Field and Description |
|---|---|
static ParameterizedType |
TYPE_URL_RESOURCE
Type instance for
ResourceFactory<URL, Resource>. |
static final ParameterizedType TYPE_URL_RESOURCE
ResourceFactory<URL, Resource>.U createResource(T representation, Map<String,Object> parameters) throws ResourceCreationException, UnsupportedResourceException
Resource instance.representation - the object to transform into a Resource instanceparameters - generic parameters that depend on the underlying implementation. In order to know what to pass
you need to check the documentation for the implementation you're using.Resource instanceResourceCreationException - if there was an error while creating the XWiki Resource objectUnsupportedResourceException - if the passed representation points to an unsupported Resource type that we
don't know how to parseCopyright © 2004–2014 XWiki. All rights reserved.