// Path: src/main/java/org/grapheco/elfinder/service/FsService.java
// public interface FsService
// {
// 	FsItem fromHash(String hash) throws IOException;
// 
// 	String getHash(FsItem item) throws IOException;
// 
// 	FsSecurityChecker getSecurityChecker();
// 
// 	String getVolumeId(FsVolume volume);
// 
// 	FsVolume[] getVolumes();
// 
// 	FsServiceConfig getServiceConfig();
// 
// 	/**
// 	 * find files by name pattern, this provides a simple recursively iteration
// 	 * based method lucene engines can be introduced to improve it! This
// 	 * searches across all volumes.
// 	 *
// 	 * @param filter
// 	 *            The filter to apply to select files.
// 	 * @return A collection of files that match the filter and gave the root as
// 	 *         a parent.
// 	 */
// 	// TODO: bad designs: FsItemEx should not used here top level interfaces
// 	// should only know FsItem instead of FsItemEx
// 	FsItemEx[] find(FsItemFilter filter);
// }
// 
// Path: src/main/java/org/grapheco/elfinder/service/FsServiceFactory.java
// public interface FsServiceFactory
// {
// 	/**
// 	 * sometimes a FsService should be constructed dynamically according to
// 	 * current web request. e.g users may own separated file spaces in a net
// 	 * disk service platform, in this case, getFileService() get user principal
// 	 * from current request and offers him/her different file view.
// 	 * 
// 	 * @param request
// 	 *            The current HttpServletRequest.
// 	 * @param servletContext
// 	 *            The servlet context.
// 	 * @return The {@link FsService} for the current request.
// 	 */
// 	FsService getFileService(HttpServletRequest request,
// 			ServletContext servletContext);
// 
// }


import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import org.grapheco.elfinder.service.FsService;
import org.grapheco.elfinder.service.FsServiceFactory;
package org.grapheco.elfinder.impl;



/**
 * A StaticFsServiceFactory always returns one FsService, despite of whatever it
 * is requested
 * 
 * @author bluejoe
 *
 */
public class StaticFsServiceFactory implements FsServiceFactory
{
// Path: src/main/java/org/grapheco/elfinder/service/FsService.java
// public interface FsService
// {
// 	FsItem fromHash(String hash) throws IOException;
// 
// 	String getHash(FsItem item) throws IOException;
// 
// 	FsSecurityChecker getSecurityChecker();
// 
// 	String getVolumeId(FsVolume volume);
// 
// 	FsVolume[] getVolumes();
// 
// 	FsServiceConfig getServiceConfig();
// 
// 	/**
// 	 * find files by name pattern, this provides a simple recursively iteration
// 	 * based method lucene engines can be introduced to improve it! This
// 	 * searches across all volumes.
// 	 *
// 	 * @param filter
// 	 *            The filter to apply to select files.
// 	 * @return A collection of files that match the filter and gave the root as
// 	 *         a parent.
// 	 */
// 	// TODO: bad designs: FsItemEx should not used here top level interfaces
// 	// should only know FsItem instead of FsItemEx
// 	FsItemEx[] find(FsItemFilter filter);
// }
// 
// Path: src/main/java/org/grapheco/elfinder/service/FsServiceFactory.java
// public interface FsServiceFactory
// {
// 	/**
// 	 * sometimes a FsService should be constructed dynamically according to
// 	 * current web request. e.g users may own separated file spaces in a net
// 	 * disk service platform, in this case, getFileService() get user principal
// 	 * from current request and offers him/her different file view.
// 	 * 
// 	 * @param request
// 	 *            The current HttpServletRequest.
// 	 * @param servletContext
// 	 *            The servlet context.
// 	 * @return The {@link FsService} for the current request.
// 	 */
// 	FsService getFileService(HttpServletRequest request,
// 			ServletContext servletContext);
// 
// }


// Path: src/main/java/org/grapheco/elfinder/impl/StaticFsServiceFactory.java
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import org.grapheco.elfinder.service.FsService;
import org.grapheco.elfinder.service.FsServiceFactory;

package org.grapheco.elfinder.impl;



/**
 * A StaticFsServiceFactory always returns one FsService, despite of whatever it
 * is requested
 * 
 * @author bluejoe
 *
 */
public class StaticFsServiceFactory implements FsServiceFactory
{
	FsService _fsService;