Examples of ServiceRepository


Examples of com.dooapp.gaedo.finders.repository.ServiceRepository

        if (objectVertex == null) {
            objectsBeingAccessed.put(objectVertexId, null);
            return null;
        } else {
            ClassLoader classLoader = service.getContainedClass().getClassLoader();
            ServiceRepository repository = service.getRepository();
            DataType returned = (DataType) GraphUtils.createInstance(service.getDriver(), service.getStrategy(), classLoader, objectVertex, Object.class /* we use object here, as this default type should not be used */, repository, objectsBeingAccessed);
            try {
                if (service.getStrategy().shouldLoadPropertiesOf(objectVertexId, objectVertex, objectsBeingAccessed)) {
                    Map<Property, Collection<CascadeType>> containedProperties = service.getStrategy().getContainedProperties(returned, objectVertex, CascadeType.MERGE);
                    objectsBeingAccessed.put(objectVertexId, returned);
View Full Code Here

Examples of com.dooapp.gaedo.finders.repository.ServiceRepository

   * @see com.dooapp.gaedo.blueprints.transformers.TupleTransformer#getVertexFor(AbstractBluePrintsBackedFinderService<? extends Graph, DataType, ?>, java.lang.Object, java.util.Map)
   */
  @Override
  public <DataType> Vertex getVertexFor(AbstractBluePrintsBackedFinderService<? extends Graph, DataType, ?> service, Serializable cast, CascadeType cascade,
          Map<String, Object> objectsBeingUpdated) {
    ServiceRepository repository = service.getRepository();
    // some first-level check to see if someone else than this transformer has any knowledge of value (because, well, this id will be longer than hell)
    Class<? extends Serializable> valueClass = cast.getClass();
    if(Tuples.containsKey(valueClass)) {
      if(Tuples.get(valueClass).equals(this)) {
        return getVertextForUnknownSerializable(service.getDriver(), repository, cast);
View Full Code Here

Examples of com.dooapp.gaedo.finders.repository.ServiceRepository

   * @see com.dooapp.gaedo.blueprints.transformers.TupleTransformer#getVertexFor(AbstractBluePrintsBackedFinderService<? extends Graph, DataType, ?>, java.lang.Object, java.util.Map)
   */
  @Override
  public <DataType> Vertex getVertexFor(AbstractBluePrintsBackedFinderService<? extends Graph, DataType, ?> service, GraphDatabaseDriver driver, Serializable cast, CascadeType cascade,
          ObjectCache objectsBeingUpdated) {
    ServiceRepository repository = service.getRepository();
    // some first-level check to see if someone else than this transformer has any knowledge of value (because, well, this id will be longer than hell)
    Class<? extends Serializable> valueClass = cast.getClass();
    if(Tuples.containsKey(valueClass)) {
      if(Tuples.get(valueClass).equals(this)) {
        return getVertextForUnknownSerializable(driver, repository, cast);
View Full Code Here

Examples of com.dooapp.gaedo.finders.repository.ServiceRepository

            if (objectVertex == null) {
                objectsBeingAccessed.put(objectVertexId, null);
                return null;
            } else {
                ClassLoader classLoader = service.getContainedClass().getClassLoader();
                ServiceRepository repository = service.getRepository();
                DataType returned = (DataType) GraphUtils.createInstance(driver, service.getStrategy(), classLoader, objectVertex, Object.class /* we use object here, as this default type should not be used */, repository, objectsBeingAccessed);
                try {
                    if (service.getStrategy().shouldLoadPropertiesOf(objectVertexId, objectVertex, objectsBeingAccessed)) {
                        Map<Property, Collection<CascadeType>> containedProperties = service.getStrategy().getContainedProperties(returned, objectVertex, CascadeType.MERGE);
                        objectsBeingAccessed.put(objectVertexId, returned);
View Full Code Here

Examples of net.buffalo.service.ServiceRepository

   */
  protected void initServiceRepository() {
   
    if (getServletContext().getAttribute(ServiceRepository.WEB_CONTEXT_KEY) == null) {
      LOG.info("initialize the service repository");
      ServiceRepository repository = new DefaultServiceRepository(getServletContext());
      getServletContext().setAttribute(ServiceRepository.WEB_CONTEXT_KEY, repository);
    }
  }
View Full Code Here

Examples of org.fao.geonet.repository.ServiceRepository

        try {
            Element eltServices = new Element("services");
            eltServices.setAttribute("package", "org.fao.geonet");
           
            java.util.List<Service> serviceList = null;
            ServiceRepository serviceRepo = context.getBean(ServiceRepository.class);
            if (serviceIdentifierToLoad == -1) {
                serviceList = serviceRepo.findAll();
            } else {
                serviceList = Collections.singletonList(serviceRepo.findOne(serviceIdentifierToLoad));
            }

            for (Service service : serviceList) {
                if (service != null) {
                    Element srv = new Element("service");
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.