Package java.util

Examples of java.util.ArrayList.clone()


            }
        }

        ArrayList arrayList = new ArrayList(retval);
        getFlavorsForNativeCache.put(nat, new SoftReference(arrayList));
        return (List)arrayList.clone();
    }

    /**
     * Returns a <code>Map</code> of the specified <code>DataFlavor</code>s to
     * their most preferred <code>String</code> native. Each native value will
View Full Code Here


        if ( theSuccessor != (cfg.contextOf(jsr.physicalSuccessor())) ){
          throw new AssertionViolatedException("RET '"+u.getInstruction()+"' info inconsistent: jump back to '"+theSuccessor+"' or '"+cfg.contextOf(jsr.physicalSuccessor())+"'?");
        }
       
        if (theSuccessor.execute(u.getOutFrame(oldchain), newchain, icv, ev)){
          icq.add(theSuccessor, (ArrayList) newchain.clone());
        }
      }
      else{// "not a ret"
     
        // Normal successors. Add them to the queue of successors.
View Full Code Here

        // Normal successors. Add them to the queue of successors.
        InstructionContext[] succs = u.getSuccessors();
        for (int s=0; s<succs.length; s++){
          InstructionContext v = succs[s];
          if (v.execute(u.getOutFrame(oldchain), newchain, icv, ev)){
            icq.add(v, (ArrayList) newchain.clone());
          }
        }
      }// end "not a ret"

      // Exception Handlers. Add them to the queue of successors.
View Full Code Here

/* 122 */         registrations = new ArrayList();
/* 123 */         newListeners.put(listener, registrations);
/*     */       }
/*     */       else
/*     */       {
/* 127 */         registrations = (ArrayList)registrations.clone();
/* 128 */         newListeners.put(listener, registrations);
/*     */       }
/*     */
/* 131 */       registrations.add(this.factory.create(listener, filter, handback));
/*     */
View Full Code Here

/* 188 */         throw new ListenerNotFoundException("Listener not found listener=" + listener + " filter=" + filter + " handback=" + handback);
/*     */       }
/*     */
/* 191 */       HashMap newListeners = (HashMap)this.listeners.clone();
/*     */
/* 193 */       registrations = (ArrayList)registrations.clone();
/* 194 */       registration = (ListenerRegistration)registrations.remove(index);
/* 195 */       if (registrations.isEmpty())
/* 196 */         newListeners.remove(listener);
/*     */       else {
/* 198 */         newListeners.put(listener, registrations);
View Full Code Here

        final Iterator iterator = keys();
        while (iterator.hasNext()) {
            final Object key = iterator.next();
            final ArrayList list = (ArrayList) map.table.get(key);
            if (list != null) {
                map.table.put(key, list.clone());
            }
        }
        return map;
    }
View Full Code Here

                confContext.getAxisConfiguration().getGlobalInFlow();

        // Set the initial execution chain in the MessageContext to a *copy* of what
        // we got above.  This allows individual message processing to change the chain without
        // affecting later messages.
        msgContext.setExecutionChain((ArrayList) preCalculatedPhases.clone());
        msgContext.setFLOW(MessageContext.IN_FLOW);
        invoke(msgContext);

        if (msgContext.isServerSide() && !msgContext.isPaused()) {

View Full Code Here

        ArrayList preCalculatedPhases =
                confContext.getAxisConfiguration().getInFaultFlow();
        // Set the initial execution chain in the MessageContext to a *copy* of what
        // we got above.  This allows individual message processing to change the chain without
        // affecting later messages.
        msgContext.setExecutionChain((ArrayList) preCalculatedPhases.clone());
        msgContext.setFLOW(MessageContext.IN_FAULT_FLOW);
        invoke(msgContext);
    }

    public void resume(MessageContext msgctx) throws AxisFault {
View Full Code Here

        // find and execute the Fault Out Flow Handlers
        if (opContext != null) {
            AxisOperation axisOperation = opContext.getAxisOperation();
            ArrayList faultExecutionChain = axisOperation.getPhasesOutFaultFlow();

            msgContext.setExecutionChain((ArrayList) faultExecutionChain.clone());
            msgContext.setFLOW(MessageContext.OUT_FAULT_FLOW);
            invoke(msgContext);
        }

        if (!msgContext.isPaused()) {
View Full Code Here

            }
        }


        ArrayList operationChain = msgContext.getAxisOperation().getRemainingPhasesInFlow();
        msgContext.setExecutionChain((ArrayList) operationChain.clone());
    }

    /**
     * To check wether the incoming request has come in valid transport , simpley the transports
     * that service author wants to expose
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.