]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db/src/org/simantics/db/ResourceLocator.java
Direct and synchronization-free access to Layer0 resource class for DB
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / ResourceLocator.java
1 /*******************************************************************************
2  * Copyright (c) 2020 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     Semantum Oy - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.db;
13
14 /**
15  * @author Tuukka Lehtonen
16  * @since 1.43.0
17  */
18 public interface ResourceLocator {
19
20     /**
21      * Layer0 is an integral part of Simantics database modelling and for performance
22      * reasons deserves simplest possible access to its resource class.
23      * 
24      * @return returns the internally cached
25      *         <code>org.simantics.layer0.Layer0</code> instance
26      */
27     public <T> T l0();
28
29 }