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

org.ioc.commons.integration.service.Service Maven / Gradle / Ivy

Go to download

This project defines a set of useful java interfaces for helping you in the definition of the structure of your developments in Java-projects which are designed using a Inversion-Of-Control (IOC) pattern. Useful for MVP-Pattern designs in applications coded on GWT, SWT, Android, etc.

There is a newer version: 1.2.1
Show newest version
package org.ioc.commons.integration.service;


/**
 * It represents a service for making operations from remote.
 * 
 * @author Jesús Lunar Pérez
 * 
 */
public interface Service {

	/**
	 * @return The URL from the service.
	 */
	String getUrlService();

	/**
	 * @return A new instance of a manager for creating/editing service objects,
	 *         i.e. parameters and returned values
	 */
	ServiceObjectManager newObjectManager();

	/**
	 * Get the proper object manager for editing or creating related objects for
	 * an object.
	 * 
	 * In case the object was created using a previous ServiceObjectManger, it
	 * will return it; otherwise, it will return a new instance through
	 * {@link Service#newObjectManager()}
	 * 
	 * @param object
	 *            Object
	 * 
	 * @return The proper {@link ServiceObjectManager}
	 */
	ServiceObjectManager getObjectManagerFor(Object object);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy