Hi,
You can pass the path as part of the ResourceMetadata, so having a
method with both the path and metadata arguments would be duplicative
and confusing.

Regards,
Justin

On Mon, Jan 13, 2014 at 9:18 AM, connuser1 connuser1
<[email protected]> wrote:
> Hi
>
> Why isn't there a way to create a Synthetic resource with both path and
> metadata? Currently it has only 2 constructors:
>
> *SyntheticResource
> <http://sling.apache.org/apidocs/sling6/org/apache/sling/api/resource/SyntheticResource.html#SyntheticResource%28org.apache.sling.api.resource.ResourceResolver,%20org.apache.sling.api.resource.ResourceMetadata,%20java.lang.String%29>*
> (ResourceResolver<http://sling.apache.org/apidocs/sling6/org/apache/sling/api/resource/ResourceResolver.html>
> resourceResolver,
> ResourceMetadata<http://sling.apache.org/apidocs/sling6/org/apache/sling/api/resource/ResourceMetadata.html>
> rm,
> String <http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html>
>  resourceType)
>           Creates a synthetic resource with the given ResourceMetadata and
> resourceType. *SyntheticResource
> <http://sling.apache.org/apidocs/sling6/org/apache/sling/api/resource/SyntheticResource.html#SyntheticResource%28org.apache.sling.api.resource.ResourceResolver,%20java.lang.String,%20java.lang.String%29>*
> (ResourceResolver<http://sling.apache.org/apidocs/sling6/org/apache/sling/api/resource/ResourceResolver.html>
> resourceResolver,
> String <http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html> path,
> String <http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html>
>  resourceType)
>           Creates a synthetic resource with the given path and resourceType.
>
> Any specific reason for not providing both metadata and path?
>
> Thanks

Reply via email to