Examples of DescriptorNotFoundException


Examples of org.joggito.core.exceptions.DescriptorNotFoundException

    // find the corresponding descriptor.
    Resource rdfType = rsc.getProperty(RDF.type).getResource();
    ResourceDescriptor descriptor = metaContext.getDescriptor(rdfType);
    if (descriptor == null) {
      throw new DescriptorNotFoundException(rdfType);
    }

    return this.<T> createBean((Class<T>) descriptor.getBeanClass(), rsc);
  }
View Full Code Here

Examples of org.joggito.core.exceptions.DescriptorNotFoundException

  private <T> ResourceDescriptor forceGetDescriptor(Class<T> beanType) {
    MetaContext metaContext = session.getMetaContext();
    final ResourceDescriptor desc = metaContext.getDescriptor(beanType);

    if (desc == null) { // no descriptor for bean type.
      throw new DescriptorNotFoundException(beanType);
    }
    return desc;
  }
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.