@@ -0,0 +1,935 @@
+package com.xqbase.gatekeeper.tcp.gate;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0A/**%0A * This class manages the directory polling for changes%0A * and new filters.%0A *%0A * @author Tony He%0A */%0Apublic class FilterFileManager %7B%0A%0A    private static final Logger LOGGER = LoggerFactory.getLogger(FilterFileManager.class);%0A%0A    private String%5B%5D aDirectories;%0A    private int pollingInterval;%0A%0A    private Thread poller;%0A%0A    private static FilterFileManager INSTANCE;%0A%0A    private FilterFileManager() %7B%0A    %7D%0A%0A    public static FilterFileManager getInstance() %7B%0A        return INSTANCE;%0A    %7D%0A%0A    /**%0A     * Initialize the FilterFileManager.%0A     */%0A    public static void init(int pollingInterval, String... directories) throws Exception %7B%0A        if (INSTANCE == null)%0A            INSTANCE = new FilterFileManager();%0A%0A        INSTANCE.pollingInterval = pollingInterval;%0A        INSTANCE.aDirectories = directories;%0A    %7D%0A%0A%0A%7D%0A

add the FilterFileManager...