X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Fbinding%2Freflection%2FReflectionBindingProvider.java;h=23958b5ea653f26b4bfc936c79e7c7e953ab41f0;hb=f015145947a0aaf44bd11f8dab45aef96feed149;hp=a9d5cb90e89b2afdcca6c4ff2ac89d57695d7afc;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/reflection/ReflectionBindingProvider.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/reflection/ReflectionBindingProvider.java index a9d5cb90e..23958b5ea 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/reflection/ReflectionBindingProvider.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/reflection/ReflectionBindingProvider.java @@ -1,31 +1,31 @@ -/******************************************************************************* - * Copyright (c) 2007, 2011 Association for Decentralized Information Management in - * Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.databoard.binding.reflection; - -import org.simantics.databoard.binding.RecordBinding; -import org.simantics.databoard.binding.error.BindingConstructionException; -import org.simantics.databoard.type.RecordType; - -/** - * RefBindingFactory creates reflection based bindings for classes. - * - * @author toni.kalajainen - */ -public class ReflectionBindingProvider implements RecordBindingProvider { - - @Override - public RecordBinding provideRecordBinding(Class clazz, RecordType type) throws BindingConstructionException { - ClassInfo ci = ClassInfo.getInfo(clazz); - return new RecordClassBinding(ci, type); - } - -} +/******************************************************************************* + * Copyright (c) 2007, 2011 Association for Decentralized Information Management in + * Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.databoard.binding.reflection; + +import org.simantics.databoard.binding.RecordBinding; +import org.simantics.databoard.binding.error.BindingConstructionException; +import org.simantics.databoard.type.RecordType; + +/** + * RefBindingFactory creates reflection based bindings for classes. + * + * @author toni.kalajainen + */ +public class ReflectionBindingProvider implements RecordBindingProvider { + + @Override + public RecordBinding provideRecordBinding(Class clazz, RecordType type) throws BindingConstructionException { + ClassInfo ci = ClassInfo.getInfo(clazz); + return new RecordClassBinding(ci, type); + } + +}