|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.installer.api.tasks.InstallTask
org.apache.sling.installer.core.impl.AbstractInstallTask
org.apache.sling.installer.core.impl.config.ConfigInstallTask
public class ConfigInstallTask
Task to install a configuration
Field Summary | |
---|---|
protected String |
configPid
Configuration PID |
protected String |
factoryPid
Factory PID or null |
protected static Set<String> |
ignoredProperties
Configuration properties to ignore when comparing configs |
Constructor Summary | |
---|---|
ConfigInstallTask(TaskResourceGroup r,
org.osgi.util.tracker.ServiceTracker configAdminServiceTracker)
|
Method Summary | |
---|---|
void |
execute(InstallationContext ctx)
This is the heart of the task - it performs the actual task. |
protected 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 Dictionary<String,Object> |
getDictionary()
|
String |
getSortKey()
Tasks are sorted according to this key. |
protected boolean |
isSameData(Dictionary<String,Object> a,
Dictionary<String,Object> b)
True if a and b represent the same config data, ignoring "non-configuration" keys in the dictionaries |
Methods inherited from class org.apache.sling.installer.core.impl.AbstractInstallTask |
---|
getLogger |
Methods inherited from class org.apache.sling.installer.api.tasks.InstallTask |
---|
compareTo, equals, getResource, getResourceGroup, hashCode, setFinishedState, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final Set<String> ignoredProperties
protected final String configPid
protected final String factoryPid
Constructor Detail |
---|
public ConfigInstallTask(TaskResourceGroup r, org.osgi.util.tracker.ServiceTracker configAdminServiceTracker)
Method Detail |
---|
public String getSortKey()
InstallTask
getSortKey
in class InstallTask
public void execute(InstallationContext ctx)
InstallTask
execute
in class InstallTask
ctx
- The installation context.protected org.osgi.service.cm.ConfigurationAdmin getConfigurationAdmin()
protected String getCompositePid()
protected Dictionary<String,Object> getDictionary()
protected org.osgi.service.cm.Configuration getConfiguration(org.osgi.service.cm.ConfigurationAdmin ca, boolean createIfNeeded) throws IOException, org.osgi.framework.InvalidSyntaxException
IOException
org.osgi.framework.InvalidSyntaxException
protected boolean isSameData(Dictionary<String,Object> a, Dictionary<String,Object> b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |