001package com.lti.civil.impl.jni;
002
003import com.lti.civil.CaptureException;
004import com.lti.civil.CaptureSystem;
005import com.lti.civil.CaptureSystemFactory;
006
007
008/**
009 * Original class tries to load native library, but we have it already loaded,
010 * so here I just replaced original by the updated one. Please note that it's
011 * not very good w/a, but I didn't see any other choice.
012 * 
013 * @author Bartosz Firyn (SarXos)
014 */
015public class NativeCaptureSystemFactory implements CaptureSystemFactory {
016
017        @Override
018        public CaptureSystem createCaptureSystem() throws CaptureException {
019                return newCaptureSystemObj();
020        }
021
022        private static native CaptureSystem newCaptureSystemObj();
023
024}