in src/main/java/org/apache/sling/installer/factories/deploypck/impl/Activator.java [69:84]
private void getAdmin() {
this.deploymentAdminReference = this.bundleContext.getServiceReference(DEPLOYMENT_ADMIN);
if ( this.deploymentAdminReference != null ) {
final DeploymentAdmin deploymentAdmin = (DeploymentAdmin) this.bundleContext.getService(this.deploymentAdminReference);
if ( deploymentAdmin == null ) {
this.deploymentAdminReference = null;
} else {
final Dictionary<String, Object> props = new Hashtable<String, Object>();
props.put(Constants.SERVICE_DESCRIPTION, "Apache Sling Installer Support for Deployment Packages");
props.put(Constants.SERVICE_VENDOR, "The Apache Software Foundation");
this.serviceReg = this.bundleContext.registerService(new String[] {ResourceTransformer.class.getName(),
InstallTaskFactory.class.getName()},
new DeploymentPackageInstaller(deploymentAdmin), props);
}
}
}