103 lines
3.1 KiB
Java
103 lines
3.1 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* com.tridium.sys.registry.NModuleInfo
|
|
* javax.baja.naming.SlotPath
|
|
* javax.baja.registry.ModuleInfo
|
|
* javax.baja.sys.BValue
|
|
* javax.baja.sys.Sys
|
|
* javax.baja.sys.Type
|
|
*/
|
|
package com.tridium.install;
|
|
|
|
import com.tridium.install.BModuleList;
|
|
import com.tridium.install.installable.BModuleInstallable;
|
|
import com.tridium.platform.daemon.task.DaemonSessionTaskListener;
|
|
import com.tridium.sys.registry.NModuleInfo;
|
|
import javax.baja.naming.SlotPath;
|
|
import javax.baja.registry.ModuleInfo;
|
|
import javax.baja.sys.BValue;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class BRegisteredModuleList
|
|
extends BModuleList {
|
|
public static final Type TYPE;
|
|
private static BRegisteredModuleList instance;
|
|
private boolean initialized;
|
|
static /* synthetic */ Class class$com$tridium$install$BRegisteredModuleList;
|
|
|
|
public Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public static BModuleList getInstance() {
|
|
if (instance == null) {
|
|
instance = new BRegisteredModuleList();
|
|
instance.init(null);
|
|
}
|
|
return instance;
|
|
}
|
|
|
|
public void doReload(DaemonSessionTaskListener daemonSessionTaskListener) {
|
|
this.init(daemonSessionTaskListener);
|
|
}
|
|
|
|
public void reset() {
|
|
super.reset();
|
|
this.getModules().removeAll();
|
|
this.initialized = false;
|
|
}
|
|
|
|
public synchronized void doInit(DaemonSessionTaskListener daemonSessionTaskListener) {
|
|
if (!this.initialized) {
|
|
this.getModules().removeAll();
|
|
ModuleInfo[] moduleInfoArray = Sys.getRegistry().getModules();
|
|
int n = 0;
|
|
while (n < moduleInfoArray.length) {
|
|
BModuleInstallable bModuleInstallable = BModuleInstallable.make((NModuleInfo)moduleInfoArray[n]);
|
|
if (bModuleInstallable != null) {
|
|
this.getModules().add(SlotPath.escape((String)bModuleInstallable.getInstallableName()), (BValue)bModuleInstallable);
|
|
}
|
|
++n;
|
|
}
|
|
this.initialized = true;
|
|
}
|
|
}
|
|
|
|
static /* synthetic */ Class class(String string, boolean bl) {
|
|
try {
|
|
Class<?> clazz = Class.forName(string);
|
|
if (!bl) {
|
|
clazz = clazz.getComponentType();
|
|
}
|
|
return clazz;
|
|
}
|
|
catch (ClassNotFoundException classNotFoundException) {
|
|
throw new NoClassDefFoundError(classNotFoundException.getMessage());
|
|
}
|
|
}
|
|
|
|
private final /* synthetic */ void this() {
|
|
this.initialized = false;
|
|
}
|
|
|
|
public BRegisteredModuleList() {
|
|
this.this();
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$com$tridium$install$BRegisteredModuleList;
|
|
if (clazz == null) {
|
|
clazz = class$com$tridium$install$BRegisteredModuleList = BRegisteredModuleList.class("[Lcom.tridium.install.BRegisteredModuleList;", false);
|
|
}
|
|
TYPE = Sys.loadType((Class)clazz);
|
|
instance = null;
|
|
}
|
|
}
|
|
|