From: <sha...@us...> - 2012-04-18 02:26:52
|
Revision: 3638 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=3638&view=rev Author: shadowtm Date: 2012-04-18 02:26:42 +0000 (Wed, 18 Apr 2012) Log Message: ----------- Moved configuration interfaces into the interfaces module as that's a more appropriate location for them since they're used solely by our interfaces to bootstrap a DL-Learner configuration. Added Paths: ----------- trunk/interfaces/src/main/java/org/dllearner/configuration/IConfiguration.java trunk/interfaces/src/main/java/org/dllearner/configuration/IConfigurationProperty.java Removed Paths: ------------- trunk/components-core/src/main/java/org/dllearner/configuration/IConfiguration.java trunk/components-core/src/main/java/org/dllearner/configuration/IConfigurationProperty.java Deleted: trunk/components-core/src/main/java/org/dllearner/configuration/IConfiguration.java =================================================================== --- trunk/components-core/src/main/java/org/dllearner/configuration/IConfiguration.java 2012-04-13 14:02:37 UTC (rev 3637) +++ trunk/components-core/src/main/java/org/dllearner/configuration/IConfiguration.java 2012-04-18 02:26:42 UTC (rev 3638) @@ -1,64 +0,0 @@ -/** - * Copyright (C) 2007-2011, Jens Lehmann - * - * This file is part of DL-Learner. - * - * DL-Learner is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * DL-Learner is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -package org.dllearner.configuration; - -import java.util.Collection; - -/** - * Created by IntelliJ IDEA. - * User: Chris - * Date: 8/18/11 - * Time: 9:45 PM - * - * This interface defines our interaction with a DL-Learner specific configuration. - * - */ -public interface IConfiguration { - - /** - * Get a collection of all the bean names defined in the configuration. - * - * @return a collection of all the bean names defined in the configuration. - */ - public Collection<String> getBeanNames(); - - /** - * Get the class for the given bean. - * - * @param beanName The name of the bean to get the class for. - * @return The class for the given bean. - */ - public Class getClass(String beanName); - - /** - * Get the Base Directory where this configuration should be running out of. - * - * @return The Base Directory where this configuration should be running out of. - */ - public String getBaseDir(); - - /** - * Get the configuration properties for the specified bean. - * - * @param beanName The bean to get properties for. - * @return A collection of properties - */ - public Collection<IConfigurationProperty> getConfigurationProperties(String beanName); -} Deleted: trunk/components-core/src/main/java/org/dllearner/configuration/IConfigurationProperty.java =================================================================== --- trunk/components-core/src/main/java/org/dllearner/configuration/IConfigurationProperty.java 2012-04-13 14:02:37 UTC (rev 3637) +++ trunk/components-core/src/main/java/org/dllearner/configuration/IConfigurationProperty.java 2012-04-18 02:26:42 UTC (rev 3638) @@ -1,42 +0,0 @@ -package org.dllearner.configuration; - -/** - * Created by IntelliJ IDEA. - * User: Chris - * Date: 8/27/11 - * Time: 8:57 AM - * - * Respresents a Configuraiton Option setting. - */ -public interface IConfigurationProperty { - - /** - * Get the Name of this Property - * - * @return The Name of this property. - */ - public String getName(); - - - /** - * Get the String representation of the value of this property. - * - * @return The String representation of the value of this property. - */ - public Object getValue(); - - - /** - * Does this property represent a bean reference? - * - * @return True if it does. - */ - public boolean isBeanReference(); - - /** - * Does this property represent a collection of bean references? - * - * @return True if it does. - */ - public boolean isBeanReferenceCollection(); -} Copied: trunk/interfaces/src/main/java/org/dllearner/configuration/IConfiguration.java (from rev 3637, trunk/components-core/src/main/java/org/dllearner/configuration/IConfiguration.java) =================================================================== --- trunk/interfaces/src/main/java/org/dllearner/configuration/IConfiguration.java (rev 0) +++ trunk/interfaces/src/main/java/org/dllearner/configuration/IConfiguration.java 2012-04-18 02:26:42 UTC (rev 3638) @@ -0,0 +1,70 @@ +/** + * Copyright (C) 2007-2011, Jens Lehmann + * + * This file is part of DL-Learner. + * + * DL-Learner is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * DL-Learner is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +package org.dllearner.configuration; + +import java.util.Collection; + +/** + * Created by IntelliJ IDEA. + * User: Chris + * Date: 8/18/11 + * Time: 9:45 PM + * <p/> + * This interface represents on complete instance of a DL-Learner Configuration. + * <p/> + * Once an implementation of this interface is fully instantiated, it can be passed to an ApplicationContextBuilder in order + * to instantiate a Spring Application Context. + * <p/> + * Once the application context has been created, learning algorithms can be extracted and then executed. + * + * @see org.dllearner.configuration.spring.ApplicationContextBuilder + */ +public interface IConfiguration { + + /** + * Get a collection of all the bean names defined in the configuration. + * + * @return a collection of all the bean names defined in the configuration. + */ + public Collection<String> getBeanNames(); + + /** + * Get the class for the given bean. + * + * @param beanName The name of the bean to get the class for. + * @return The class for the given bean. + */ + public Class getClass(String beanName); + + /** + * Get the Base Directory where this configuration should be running out of. + * + * @return The Base Directory where this configuration should be running out of. + */ + public String getBaseDir(); + + /** + * Get the configuration properties for the specified bean. + * + * @param beanName The bean to get properties for. + * @return A collection of properties + */ + public Collection<IConfigurationProperty> getConfigurationProperties(String beanName); +} Copied: trunk/interfaces/src/main/java/org/dllearner/configuration/IConfigurationProperty.java (from rev 3637, trunk/components-core/src/main/java/org/dllearner/configuration/IConfigurationProperty.java) =================================================================== --- trunk/interfaces/src/main/java/org/dllearner/configuration/IConfigurationProperty.java (rev 0) +++ trunk/interfaces/src/main/java/org/dllearner/configuration/IConfigurationProperty.java 2012-04-18 02:26:42 UTC (rev 3638) @@ -0,0 +1,44 @@ +package org.dllearner.configuration; + +/** + * Created by IntelliJ IDEA. + * User: Chris + * Date: 8/27/11 + * Time: 8:57 AM + * + * This Represents a Configuration Option within a DL Learner Configuration. + * + * @see IConfiguration + */ +public interface IConfigurationProperty { + + /** + * Get the Name of this Property + * + * @return The Name of this property. + */ + public String getName(); + + + /** + * Get the String representation of the value of this property. + * + * @return The String representation of the value of this property. + */ + public Object getValue(); + + + /** + * Does this property represent a bean reference? + * + * @return True if it does. + */ + public boolean isBeanReference(); + + /** + * Does this property represent a collection of bean references? + * + * @return True if it does. + */ + public boolean isBeanReferenceCollection(); +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |