snaker-jfinal/src/main/java/org/snaker/jfinal/plugin/SnakerPlugin.java
public boolean start() {
		if (isStarted)
			return true;
		if (dataSourceProvider != null)
			dataSource = dataSourceProvider.getDataSource();
		if (dataSource == null)
			throw new RuntimeException("SnakerPlugin start error: SnakerPlugin need DataSource");
        Configuration config = new Configuration().initAccessDBObject(dataSource);
        if(properties != null) config.initProperties(properties);
		engine = config.buildSnakerEngine();
		isStarted = true;
		return true;
	}
public boolean start() {
		if (isStarted)
			return true;
		if (dataSourceProvider != null)
			dataSource = dataSourceProvider.getDataSource();
		if (dataSource == null)
			throw new RuntimeException("SnakerPlugin start error: SnakerPlugin need DataSource");
        Configuration config = new Configuration().initAccessDBObject(dataSource);
        if(properties != null) config.initProperties(properties);
		engine = config.buildSnakerEngine();
		isStarted = true;
		return true;
	}
public boolean start ( ) { if ( isStarted ) return true ; if ( dataSourceProvider != null ) dataSource = dataSourceProvider . getDataSource ( ) ; if ( dataSource == null ) throw new RuntimeException ( "SnakerPlugin start error: SnakerPlugin need DataSource" ) ; Configuration config = new Configuration ( ) . initAccessDBObject ( dataSource ) ; if ( properties != null ) config . initProperties ( properties ) ; engine = config . buildSnakerEngine ( ) ; isStarted = true ; return true ; }
启动插件
启动插件