org.apache.sling.installer.core.impl
Class DefaultTransformer
java.lang.Object
org.apache.sling.installer.core.impl.DefaultTransformer
- All Implemented Interfaces:
- ResourceTransformer, InternalService
public class DefaultTransformer
- extends Object
- implements InternalService, ResourceTransformer
The default transformer transforms:
- file resources containing a bundle into OSGI bundle resources
- properties resources with specific extensions into OSGi configurations
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTransformer
public DefaultTransformer()
init
public void init(org.osgi.framework.BundleContext bctx)
- Specified by:
init
in interface InternalService
- See Also:
InternalService.init(org.osgi.framework.BundleContext)
deactivate
public void deactivate()
- Specified by:
deactivate
in interface InternalService
- See Also:
InternalService.deactivate()
getDescription
public String getDescription()
- Specified by:
getDescription
in interface InternalService
- See Also:
InternalService.getDescription()
transform
public TransformationResult[] transform(RegisteredResource resource)
- Description copied from interface:
ResourceTransformer
- Try to transform the registered resource.
If the transformer is not responsible for transforming the
resource, it should return
null
- Specified by:
transform
in interface ResourceTransformer
- Parameters:
resource
- The resource
- Returns:
- An array of transformation results or
null
- See Also:
ResourceTransformer.transform(org.apache.sling.installer.api.tasks.RegisteredResource)
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.