org.apache.sling.installer.factories.configuration.impl
Class ConfigInstallTask
java.lang.Object
org.apache.sling.installer.api.tasks.InstallTask
org.apache.sling.installer.factories.configuration.impl.ConfigInstallTask
- All Implemented Interfaces:
- java.lang.Comparable<org.apache.sling.installer.api.tasks.InstallTask>
public class ConfigInstallTask
- extends org.apache.sling.installer.api.tasks.InstallTask
Task to install a configuration
Field Summary |
protected java.lang.String |
aliasPid
Alias factory pid or null. |
protected java.lang.String |
configPid
Configuration PID |
protected java.lang.String |
factoryPid
Factory PID or null |
Constructor Summary |
ConfigInstallTask(org.apache.sling.installer.api.tasks.TaskResourceGroup r,
org.osgi.service.cm.ConfigurationAdmin configAdmin)
|
Method Summary |
void |
execute(org.apache.sling.installer.api.tasks.InstallationContext ctx)
|
protected java.lang.String |
getCompositeAliasPid()
|
protected java.lang.String |
getCompositePid()
|
protected org.osgi.service.cm.Configuration |
getConfiguration(org.osgi.service.cm.ConfigurationAdmin ca,
boolean createIfNeeded)
|
protected org.osgi.service.cm.ConfigurationAdmin |
getConfigurationAdmin()
Get the configuration admin - if available |
protected java.util.Dictionary<java.lang.String,java.lang.Object> |
getDictionary()
|
protected org.slf4j.Logger |
getLogger()
|
java.lang.String |
getSortKey()
|
Methods inherited from class org.apache.sling.installer.api.tasks.InstallTask |
compareTo, equals, getResource, getResourceGroup, hashCode, setFinishedState, setFinishedState, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
configPid
protected final java.lang.String configPid
- Configuration PID
factoryPid
protected final java.lang.String factoryPid
- Factory PID or null
aliasPid
protected java.lang.String aliasPid
- Alias factory pid or null.
ConfigInstallTask
public ConfigInstallTask(org.apache.sling.installer.api.tasks.TaskResourceGroup r,
org.osgi.service.cm.ConfigurationAdmin configAdmin)
getSortKey
public java.lang.String getSortKey()
- Specified by:
getSortKey
in class org.apache.sling.installer.api.tasks.InstallTask
execute
public void execute(org.apache.sling.installer.api.tasks.InstallationContext ctx)
- Specified by:
execute
in class org.apache.sling.installer.api.tasks.InstallTask
getLogger
protected org.slf4j.Logger getLogger()
getConfigurationAdmin
protected org.osgi.service.cm.ConfigurationAdmin getConfigurationAdmin()
- Get the configuration admin - if available
getCompositePid
protected java.lang.String getCompositePid()
getCompositeAliasPid
protected java.lang.String getCompositeAliasPid()
getDictionary
protected java.util.Dictionary<java.lang.String,java.lang.Object> getDictionary()
getConfiguration
protected org.osgi.service.cm.Configuration getConfiguration(org.osgi.service.cm.ConfigurationAdmin ca,
boolean createIfNeeded)
throws java.io.IOException,
org.osgi.framework.InvalidSyntaxException
- Throws:
java.io.IOException
org.osgi.framework.InvalidSyntaxException
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.