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

com.mysema.rdfbean.object.ObjectRepository Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2010 Mysema Ltd.
 * All rights reserved.
 * 
 */
package com.mysema.rdfbean.object;

import javax.annotation.Nullable;

import com.mysema.rdfbean.model.UID;

/**
 * Bean container that is able to return an instance of given class with given
 * id.
 * 
 * @author sasa
 */
public interface ObjectRepository {

    /**
     * Return an instance of clazz with given id (URI).
     * 
     * @param clazz
     *            type requested. May be null.
     * @param uri
     *            id if the requested resource. Never null.
     * @return requested instance or null if not found.
     */
    @Nullable
     T getBean(Class clazz, UID uri);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy