Examples of ReferenceNotFoundException


Examples of com.iggroup.oss.sample.domain.exception.ReferenceNotFoundException

   public Sample loadSample(String reference) {

      Sample sample = database.get(reference);

      if (sample == null) {
         throw new ReferenceNotFoundException(reference);
      }
      return sample;

   }
View Full Code Here

Examples of com.iggroup.oss.sample.domain.exception.ReferenceNotFoundException

    *
    * @param reference the reference of the sample to be deleted
    */
   public void deleteSample(String reference) {
      if (!database.containsKey(reference)) {
         throw new ReferenceNotFoundException(reference);
      }
      database.remove(reference);
   }
View Full Code Here

Examples of com.iggroup.oss.sample.domain.exception.ReferenceNotFoundException

    *
    * @param sample the updated sample
    */
   public void updateSample(Sample sample) {
      if (!database.containsKey(sample.getReference())) {
         throw new ReferenceNotFoundException(sample.getReference());
      }
      database.put(sample.getReference(), sample);
   }
View Full Code Here

Examples of org.apache.tuscany.spi.component.ReferenceNotFoundException

        for (ReferenceTarget referenceTarget : definition.getReferenceTargets().values()) {
            Map<String, ? extends ReferenceDefinition> references = componentType.getReferences();
            ReferenceDefinition mappedReference = references.get(referenceTarget.getReferenceName());
            if (mappedReference == null) {
                String refName = referenceTarget.getReferenceName();
                ReferenceNotFoundException e = new ReferenceNotFoundException(refName);
                e.addContextName(refName);
                e.addContextName(definition.getName());
                throw e;
            }
            OutboundWire wire = createWire(referenceTarget, mappedReference);
            wire.setContainer(component);
            component.addOutboundWire(wire);
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.