Changes between Version 23 and Version 24 of ApertureDataSource


Ignore:
Timestamp:
10/17/05 14:44:35 (19 years ago)
Author:
sauermann
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ApertureDataSource

    v23 v24  
    1818 
    1919        /** 
    20          * Method added from Gnowsis 
    21          * 
    22          * 
    23          * 
    2420         * get the configuration of this datasource. 
    25          * The configuration is always passed to the constructor. 
    2621         * @return the configuration 
    2722         */ 
    28         public DataSourceConfig getDSConfig(); 
    29   
     23        public Map getConfiguration(); 
     24 
    3025        /** 
    31          * Method added from Gnowsis 
    32          * 
    33          * The Aduna Interface identifies DataSources by ID and Name. 
    34          * Gnowsis uses Uris  
    35          * 
    36          * return the uri identifying this datasource inside gnowsis. 
    37          * The uri is usually the uri of the resource in the DSConfig. 
    38          * The uri is unique inside one gnowsis installation. 
    39          * @return the uri of this datasource 
     26         * Initialize the datasource using the passed configuration map. 
     27         * each parameter relevant to the datasource (data path, passwords, usernames, timeouts, rules, etc) is passed 
     28         * this method must only be called once. 
     29         * TODO: should it check the configuration (passwords allright, etc) now or when the crawler starts? 
     30         * @throws InitializationException when the configuration contains syntactically wrong parameters  
     31         * or does not function correctly. 
    4032         */ 
    41          public String getUri(); 
     33        public void initConfiguration(Map configuration) throws InitializationException; 
    4234 
    4335        /** 
    4436         * Gets the id of this data source. 
    45          *  
    46          * @return A identifier for the data source. 
     37         * The Aduna Interface identifies DataSources by ID and Name. 
     38         * Gnowsis uses Uris. This ID SHOULD conform to the URI scheme norm! 
     39         * TODO: should it be a URI or not? for future's sake: yes! 
     40         * @return A URI identifier for the data source. 
    4741         */ 
    4842        public String getID();