@Override public void registerTwoPhaseResources(TwoPhaseResource... resources) { checkState(); if (resources == null) return; for (int lcv = 0; lcv < resources.length; lcv++) { TwoPhaseResource resource = resources[lcv]; if (resource == null) continue; allResources.add(resource); } }
@Override public void addUnbindFilter(Filter unbindFilter) throws IllegalArgumentException { if (unbindFilter == null) throw new IllegalArgumentException(); checkState(); allUnbindFilters.add(unbindFilter); }
@Override public void addIdempotentFilter(Filter... idempotentFilter) throws IllegalArgumentException { if (idempotentFilter == null) throw new IllegalArgumentException(); checkState(); for (Filter iFilter : idempotentFilter) { if (iFilter == null) throw new IllegalArgumentException(); } for (Filter iFilter : idempotentFilter) { allIdempotentFilters.add(iFilter); } }
@Override public void commit() throws MultiException { synchronized (lock) { checkState(); committed = true; } locator.addConfiguration(this); }
@Override public void commit() throws MultiException { synchronized (lock) { checkState(); committed = true; } locator.addConfiguration(this); }
@Override public void commit() throws MultiException { synchronized (lock) { checkState(); committed = true; } locator.addConfiguration(this); }
@Override public void commit() throws MultiException { synchronized (lock) { checkState(); committed = true; } locator.addConfiguration(this); }
@Override public <T> ActiveDescriptor<T> bind(Descriptor key, boolean requiresDeepCopy) { checkState(); checkDescriptor(key); SystemDescriptor<T> sd = new SystemDescriptor<T>(key, requiresDeepCopy, locator, locator.getNextServiceId()); allDescriptors.add(sd); return sd; }
@Override public <T> ActiveDescriptor<T> bind(Descriptor key, boolean requiresDeepCopy) { checkState(); checkDescriptor(key); SystemDescriptor<T> sd = new SystemDescriptor<T>(key, requiresDeepCopy, locator, locator.getNextServiceId()); allDescriptors.add(sd); return sd; }
@Override public <T> ActiveDescriptor<T> bind(Descriptor key, boolean requiresDeepCopy) { checkState(); checkDescriptor(key); SystemDescriptor<T> sd = new SystemDescriptor<T>(key, requiresDeepCopy, locator, locator.getNextServiceId()); allDescriptors.add(sd); return sd; }
@Override public <T> ActiveDescriptor<T> bind(Descriptor key, boolean requiresDeepCopy) { checkState(); checkDescriptor(key); SystemDescriptor<T> sd = new SystemDescriptor<T>(key, requiresDeepCopy, locator, locator.getNextServiceId()); allDescriptors.add(sd); return sd; }
@Override public <T> ActiveDescriptor<T> addActiveDescriptor(ActiveDescriptor<T> activeDescriptor, boolean requiresDeepCopy) throws IllegalArgumentException { checkState(); checkDescriptor(activeDescriptor); if (!activeDescriptor.isReified()) { throw new IllegalArgumentException(); } checkReifiedDescriptor(activeDescriptor); SystemDescriptor<T> retVal = new SystemDescriptor<T>(activeDescriptor, requiresDeepCopy, locator, locator.getNextServiceId()); allDescriptors.add(retVal); return retVal; }
@Override public <T> ActiveDescriptor<T> addActiveDescriptor(ActiveDescriptor<T> activeDescriptor, boolean requiresDeepCopy) throws IllegalArgumentException { checkState(); checkDescriptor(activeDescriptor); if (!activeDescriptor.isReified()) { throw new IllegalArgumentException(); } checkReifiedDescriptor(activeDescriptor); SystemDescriptor<T> retVal = new SystemDescriptor<T>(activeDescriptor, requiresDeepCopy, locator, locator.getNextServiceId()); allDescriptors.add(retVal); return retVal; }
@Override public <T> ActiveDescriptor<T> addActiveDescriptor(ActiveDescriptor<T> activeDescriptor, boolean requiresDeepCopy) throws IllegalArgumentException { checkState(); checkDescriptor(activeDescriptor); if (!activeDescriptor.isReified()) { throw new IllegalArgumentException(); } checkReifiedDescriptor(activeDescriptor); SystemDescriptor<T> retVal = new SystemDescriptor<T>(activeDescriptor, requiresDeepCopy, locator, locator.getNextServiceId()); allDescriptors.add(retVal); return retVal; }
@Override public <T> ActiveDescriptor<T> addActiveDescriptor(ActiveDescriptor<T> activeDescriptor, boolean requiresDeepCopy) throws IllegalArgumentException { checkState(); checkDescriptor(activeDescriptor); if (!activeDescriptor.isReified()) { throw new IllegalArgumentException(); } checkReifiedDescriptor(activeDescriptor); SystemDescriptor<T> retVal = new SystemDescriptor<T>(activeDescriptor, requiresDeepCopy, locator, locator.getNextServiceId()); allDescriptors.add(retVal); return retVal; }