org.apache.sling.installer.api.tasks
Interface ResourceTransformer
public interface ResourceTransformer
A resource transformer transform a registered resource
before it can be installed.
Based on the transformation result, the installer creates
one or more TaskResources from the registered
resources and passes them on to the InstallTaskFactory.
transform
TransformationResult[] transform(RegisteredResource resource)
- Try to transform the registered resource.
If the transformer is not responsible for transforming the
resource, it should return
null
- Parameters:
resource - The resource
- Returns:
- An array of transformation results or
null
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.