All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jtransfo.ObjectFinder Maven / Gradle / Ivy

There is a newer version: 2.10
Show newest version
/*
 * This file is part of jTransfo, a library for converting to and from transfer objects.
 * Copyright (c) PROGS bvba, Belgium
 *
 * The program is available in open source according to the Apache License, Version 2.0.
 * For full licensing details, see LICENSE.txt in the project root.
 */

package org.jtransfo;

/**
 * Allow domain objects to be discovered from the transfer object.
 * 

* This is typically used to get the base object from the database. */ public interface ObjectFinder { /** * Try to get the domain object for the given transfer object. *

* Return null when no domain object found or when it is unknown how to create the object. * * @param domain class type * @param domainClass type of class needed * @param to transfer object which needs to be converted * @return base domain object or null if object finder cannot handle this case * @throws JTransfoException something went wrong while trying to find object */ T getObject(Class domainClass, Object to) throws JTransfoException; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy