org.apache.sling.installer.core.impl
Class DefaultTransformer

java.lang.Object
  extended by 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


Constructor Summary
DefaultTransformer()
           
 
Method Summary
 void deactivate()
           
 String getDescription()
           
 void init(org.osgi.framework.BundleContext bctx)
           
 TransformationResult[] transform(RegisteredResource resource)
          Try to transform the registered resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTransformer

public DefaultTransformer()
Method Detail

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.