this.listeners = SCollection.createMultiCollection(); this.resultlisteners = SCollection.createHashMap(); this.resultlisteners = Collections.synchronizedMap(resultlisteners);
/** * Create a new component execution service. * @param exta The service provider. */ public DecoupledComponentManagementService(IComponentAdapter root, IBootstrapFactory componentfactory, boolean copy, boolean realtime, boolean uniqueids) { this.root = root; this.componentfactory = componentfactory; this.copy = copy; this.realtime = realtime; this.uniqueids = uniqueids; // Todo: why some collections synchronized? single thread access!? this.adapters = SCollection.createHashMap(); this.ccs = SCollection.createLinkedHashMap(); this.cfs = SCollection.createLinkedHashMap(); // this.logger = Logger.getLogger(AbstractComponentAdapter.getLoggerName(exta.getComponentIdentifier())+".cms"); this.listeners = SCollection.createMultiCollection(); this.resultlisteners = SCollection.createHashMap(); this.initinfos = SCollection.createHashMap(); this.childcounts = SCollection.createHashMap(); this.localtypes = new LRU<Tuple, String>(100); this.lockentries = SCollection.createHashMap(); this.cidcounts = new HashMap<String, Integer>(); }
/** * Create a new component execution service. * @param exta The service provider. */ public DecoupledComponentManagementService(IComponentAdapter root, IBootstrapFactory componentfactory, boolean copy, boolean realtime, boolean uniqueids) { this.root = root; this.componentfactory = componentfactory; this.copy = copy; this.realtime = realtime; this.uniqueids = uniqueids; // Todo: why some collections synchronized? single thread access!? this.adapters = SCollection.createHashMap(); this.ccs = SCollection.createLinkedHashMap(); this.cfs = SCollection.createLinkedHashMap(); // this.logger = Logger.getLogger(AbstractComponentAdapter.getLoggerName(exta.getComponentIdentifier())+".cms"); this.listeners = SCollection.createMultiCollection(); this.resultlisteners = SCollection.createHashMap(); this.initinfos = SCollection.createHashMap(); this.childcounts = SCollection.createHashMap(); this.localtypes = new LRU<Tuple, String>(100); this.lockentries = SCollection.createHashMap(); this.cidcounts = new HashMap<String, Integer>(); }
/** * Create a new component execution service. * @param exta The service provider. */ public ComponentManagementService(IPlatformComponentAccess access, IBootstrapFactory componentfactory, boolean uniqueids) { this.access = access; this.componentfactory = componentfactory; this.uniqueids = uniqueids; this.components = SCollection.createHashMap(); this.ccs = SCollection.createLinkedHashMap(); this.cfs = SCollection.createLinkedHashMap(); // this.logger = Logger.getLogger(AbstractComponentAdapter.getLoggerName(exta.getComponentIdentifier())+".cms"); this.listeners = SCollection.createMultiCollection(); this.initinfos = SCollection.createHashMap(); this.childcounts = SCollection.createHashMap(); this.localtypes = new LRU<Tuple, String>(100); this.lockentries = SCollection.createHashMap(); this.cidcounts = new HashMap<String, Integer>(); putInitInfo(access.getInternalAccess().getComponentIdentifier(), new InitInfo(access, null, null)); }