[Minor] reorganized classes for Agent into api and impl packages

This commit is contained in:
Robert von Burg 2013-12-25 22:30:59 +01:00
parent 51fac6a0cf
commit ebc9b59dd1
49 changed files with 110 additions and 61 deletions

View File

@ -3,8 +3,8 @@ package li.strolch.persistence.mock;
import li.strolch.persistence.api.PersistenceHandler;
import li.strolch.persistence.api.StrolchTransaction;
import li.strolch.runtime.StrolchConstants;
import li.strolch.runtime.agent.ComponentContainerImpl;
import li.strolch.runtime.agent.StrolchComponent;
import li.strolch.runtime.agent.api.StrolchComponent;
import li.strolch.runtime.agent.impl.ComponentContainerImpl;
public class PersistenceHandlerMock extends StrolchComponent implements PersistenceHandler {

View File

@ -13,7 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.api;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.api;
import java.text.MessageFormat;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.api;
import java.util.List;
import java.util.Set;

View File

@ -13,7 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.api;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.api;
import li.strolch.model.Order;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.api;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.api;
import li.strolch.model.Resource;

View File

@ -13,11 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.api;
import java.io.File;
import java.text.MessageFormat;
import li.strolch.runtime.agent.impl.ComponentContainerImpl;
import li.strolch.runtime.agent.impl.DataStoreMode;
import li.strolch.runtime.agent.impl.ElementMapHandlerConfigurator;
import li.strolch.runtime.configuration.ComponentConfiguration;
import li.strolch.runtime.configuration.ConfigurationParser;
import li.strolch.runtime.configuration.RuntimeConfiguration;

View File

@ -13,10 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.api;
import java.text.MessageFormat;
import li.strolch.runtime.agent.impl.ComponentContainerImpl;
import li.strolch.runtime.configuration.ComponentConfiguration;
import org.slf4j.Logger;

View File

@ -13,13 +13,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import java.text.MessageFormat;
import java.util.Map;
import li.strolch.exception.StrolchException;
import li.strolch.runtime.StrolchConstants;
import li.strolch.runtime.agent.api.ElementMapHandler;
import li.strolch.runtime.agent.api.OrderMap;
import li.strolch.runtime.agent.api.ResourceMap;
import li.strolch.runtime.agent.api.StrolchComponent;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -1,4 +1,4 @@
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import java.util.List;
import java.util.Set;
@ -7,6 +7,7 @@ import li.strolch.model.StrolchElement;
import li.strolch.persistence.api.PersistenceHandler;
import li.strolch.persistence.api.StrolchDao;
import li.strolch.persistence.api.StrolchTransaction;
import li.strolch.runtime.agent.api.ElementMap;
public abstract class AbstractTransactionalElementMap<T extends StrolchElement> implements ElementMap<T> {

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import java.text.MessageFormat;
import java.util.List;
@ -25,6 +25,8 @@ import li.strolch.persistence.api.OrderDao;
import li.strolch.persistence.api.PersistenceHandler;
import li.strolch.persistence.api.ResourceDao;
import li.strolch.persistence.api.StrolchTransaction;
import li.strolch.runtime.agent.api.OrderMap;
import li.strolch.runtime.agent.api.ResourceMap;
import ch.eitchnet.utils.helper.StringHelper;
/**

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import java.util.HashMap;
import java.util.HashSet;
@ -21,6 +21,8 @@ import java.util.Map;
import java.util.Set;
import li.strolch.persistence.api.PersistenceHandler;
import li.strolch.runtime.agent.api.ElementMapHandler;
import li.strolch.runtime.agent.api.StrolchAgent;
import li.strolch.runtime.configuration.ComponentConfiguration;
import li.strolch.runtime.configuration.RuntimeConfiguration;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
@ -22,6 +22,12 @@ import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import li.strolch.runtime.agent.api.ComponentContainer;
import li.strolch.runtime.agent.api.ComponentState;
import li.strolch.runtime.agent.api.ElementMapHandler;
import li.strolch.runtime.agent.api.OrderMap;
import li.strolch.runtime.agent.api.ResourceMap;
import li.strolch.runtime.agent.api.StrolchComponent;
import li.strolch.runtime.configuration.ComponentConfiguration;
import li.strolch.runtime.configuration.StrolchConfiguration;
import li.strolch.runtime.configuration.StrolchConfigurationException;

View File

@ -13,12 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import java.text.MessageFormat;
import java.util.HashSet;
import java.util.Set;
import li.strolch.runtime.agent.api.StrolchComponent;
import li.strolch.runtime.configuration.StrolchConfigurationException;
public class ComponentController {

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import java.text.MessageFormat;
import java.util.HashSet;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import java.text.MessageFormat;

View File

@ -13,8 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import li.strolch.runtime.agent.api.StrolchAgent;
import li.strolch.runtime.configuration.ComponentConfiguration;
/**

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -13,13 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import li.strolch.runtime.agent.api.ElementMapHandler;
import li.strolch.runtime.agent.api.StrolchAgent;
import li.strolch.runtime.configuration.ComponentConfiguration;
import li.strolch.runtime.configuration.RuntimeConfiguration;

View File

@ -13,11 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import li.strolch.model.Order;
import li.strolch.model.Resource;
import li.strolch.model.xml.StrolchElementListener;
import li.strolch.runtime.agent.api.OrderMap;
import li.strolch.runtime.agent.api.ResourceMap;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import java.text.MessageFormat;
import java.util.ArrayList;
@ -24,6 +24,7 @@ import java.util.Map;
import java.util.Set;
import li.strolch.model.StrolchElement;
import li.strolch.runtime.agent.api.ElementMap;
import ch.eitchnet.utils.helper.StringHelper;
/**

View File

@ -13,11 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import java.util.HashMap;
import li.strolch.runtime.StrolchConstants;
import li.strolch.runtime.agent.api.StrolchAgent;
import li.strolch.runtime.configuration.ComponentConfiguration;
import li.strolch.runtime.configuration.RuntimeConfiguration;

View File

@ -13,9 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import li.strolch.model.Order;
import li.strolch.runtime.agent.api.OrderMap;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -13,9 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import li.strolch.model.Resource;
import li.strolch.runtime.agent.api.ResourceMap;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -13,7 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import li.strolch.runtime.agent.api.PostInitializer;
import li.strolch.runtime.agent.api.StrolchComponent;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -13,7 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import li.strolch.runtime.agent.api.OrderMap;
import li.strolch.runtime.agent.api.ResourceMap;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -13,13 +13,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import java.text.MessageFormat;
import java.util.HashMap;
import li.strolch.persistence.api.PersistenceHandler;
import li.strolch.runtime.StrolchConstants;
import li.strolch.runtime.agent.api.OrderMap;
import li.strolch.runtime.agent.api.ResourceMap;
import li.strolch.runtime.agent.api.StrolchAgent;
import li.strolch.runtime.configuration.ComponentConfiguration;
import li.strolch.runtime.configuration.RuntimeConfiguration;
import ch.eitchnet.utils.helper.StringHelper;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import java.util.HashMap;
import java.util.HashSet;
@ -21,6 +21,8 @@ import java.util.Map;
import java.util.Set;
import li.strolch.persistence.api.PersistenceHandler;
import li.strolch.runtime.agent.api.ElementMapHandler;
import li.strolch.runtime.agent.api.StrolchAgent;
import li.strolch.runtime.configuration.ComponentConfiguration;
import li.strolch.runtime.configuration.RuntimeConfiguration;

View File

@ -1,9 +1,10 @@
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import li.strolch.model.Order;
import li.strolch.persistence.api.OrderDao;
import li.strolch.persistence.api.PersistenceHandler;
import li.strolch.persistence.api.StrolchTransaction;
import li.strolch.runtime.agent.api.OrderMap;
public class TransactionalOrderMap extends AbstractTransactionalElementMap<Order> implements OrderMap {

View File

@ -1,9 +1,10 @@
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import li.strolch.model.Resource;
import li.strolch.persistence.api.PersistenceHandler;
import li.strolch.persistence.api.ResourceDao;
import li.strolch.persistence.api.StrolchTransaction;
import li.strolch.runtime.agent.api.ResourceMap;
public class TransactionalResourceMap extends AbstractTransactionalElementMap<Resource> implements ResourceMap {

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import java.io.File;
import java.text.MessageFormat;
@ -23,6 +23,9 @@ import java.util.Map;
import li.strolch.model.xml.XmlModelDefaultHandler.XmlModelStatistics;
import li.strolch.model.xml.XmlModelFileHandler;
import li.strolch.runtime.StrolchConstants;
import li.strolch.runtime.agent.api.OrderMap;
import li.strolch.runtime.agent.api.ResourceMap;
import li.strolch.runtime.agent.api.StrolchAgent;
import li.strolch.runtime.configuration.ComponentConfiguration;
import li.strolch.runtime.configuration.RuntimeConfiguration;
import li.strolch.runtime.configuration.StrolchConfigurationException;

View File

@ -13,13 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package li.strolch.runtime.agent;
package li.strolch.runtime.agent.impl;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import li.strolch.runtime.agent.api.ElementMapHandler;
import li.strolch.runtime.agent.api.StrolchAgent;
import li.strolch.runtime.configuration.ComponentConfiguration;
import li.strolch.runtime.configuration.RuntimeConfiguration;

View File

@ -19,7 +19,7 @@ import java.io.File;
import java.text.MessageFormat;
import java.util.concurrent.atomic.AtomicBoolean;
import li.strolch.runtime.agent.StrolchAgent;
import li.strolch.runtime.agent.api.StrolchAgent;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;

View File

@ -22,8 +22,8 @@ import java.util.List;
import java.util.Map;
import li.strolch.model.StrolchElement;
import li.strolch.runtime.agent.ComponentContainerImpl;
import li.strolch.runtime.agent.StrolchComponent;
import li.strolch.runtime.agent.api.StrolchComponent;
import li.strolch.runtime.agent.impl.ComponentContainerImpl;
import li.strolch.runtime.configuration.ComponentConfiguration;
/**

View File

@ -20,8 +20,8 @@ import java.io.FileInputStream;
import java.text.MessageFormat;
import java.util.Map;
import li.strolch.runtime.agent.ComponentContainerImpl;
import li.strolch.runtime.agent.StrolchComponent;
import li.strolch.runtime.agent.api.StrolchComponent;
import li.strolch.runtime.agent.impl.ComponentContainerImpl;
import li.strolch.runtime.configuration.ComponentConfiguration;
import li.strolch.runtime.configuration.RuntimeConfiguration;
import ch.eitchnet.privilege.base.PrivilegeException;

View File

@ -21,7 +21,7 @@ import li.strolch.model.query.OrderQuery;
import li.strolch.model.query.OrderQueryVisitor;
import li.strolch.model.query.StateSelection;
import li.strolch.model.query.StrolchTypeNavigation;
import li.strolch.runtime.agent.ComponentContainer;
import li.strolch.runtime.agent.api.ComponentContainer;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -34,7 +34,7 @@ import li.strolch.model.query.ParameterSelection.IntegerParameterSelection;
import li.strolch.model.query.ParameterSelection.LongParameterSelection;
import li.strolch.model.query.ParameterSelection.StringListParameterSelection;
import li.strolch.model.query.ParameterSelection.StringParameterSelection;
import li.strolch.runtime.agent.ComponentContainer;
import li.strolch.runtime.agent.api.ComponentContainer;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -22,7 +22,7 @@ import li.strolch.model.Resource;
import li.strolch.model.query.ResourceQuery;
import li.strolch.model.query.ResourceQueryVisitor;
import li.strolch.model.query.StrolchTypeNavigation;
import li.strolch.runtime.agent.ComponentContainer;
import li.strolch.runtime.agent.api.ComponentContainer;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -16,8 +16,8 @@
package li.strolch.runtime.query.inmemory;
import li.strolch.model.Order;
import li.strolch.runtime.agent.ComponentContainer;
import li.strolch.runtime.agent.ElementMap;
import li.strolch.runtime.agent.api.ComponentContainer;
import li.strolch.runtime.agent.api.ElementMap;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -16,8 +16,8 @@
package li.strolch.runtime.query.inmemory;
import li.strolch.model.Resource;
import li.strolch.runtime.agent.ComponentContainer;
import li.strolch.runtime.agent.ElementMap;
import li.strolch.runtime.agent.api.ComponentContainer;
import li.strolch.runtime.agent.api.ElementMap;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -18,7 +18,7 @@ package li.strolch.runtime.query.inmemory;
import java.util.List;
import li.strolch.model.StrolchElement;
import li.strolch.runtime.agent.ElementMap;
import li.strolch.runtime.agent.api.ElementMap;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -26,8 +26,8 @@ import li.strolch.model.Resource;
import li.strolch.persistence.api.PersistenceHandler;
import li.strolch.persistence.api.ResourceDao;
import li.strolch.persistence.api.StrolchTransaction;
import li.strolch.runtime.agent.ComponentContainer;
import li.strolch.runtime.agent.StrolchAgent;
import li.strolch.runtime.agent.api.ComponentContainer;
import li.strolch.runtime.agent.api.StrolchAgent;
import li.strolch.runtime.configuration.RuntimeConfiguration;
import li.strolch.runtime.test.component.model.PersistenceHandlerTest;
import li.strolch.runtime.test.component.model.ServiceHandlerTest;

View File

@ -25,10 +25,10 @@ import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import li.strolch.runtime.agent.ComponentContainerImpl;
import li.strolch.runtime.agent.ComponentController;
import li.strolch.runtime.agent.ComponentDependencyAnalyzer;
import li.strolch.runtime.agent.StrolchComponent;
import li.strolch.runtime.agent.api.StrolchComponent;
import li.strolch.runtime.agent.impl.ComponentContainerImpl;
import li.strolch.runtime.agent.impl.ComponentController;
import li.strolch.runtime.agent.impl.ComponentDependencyAnalyzer;
import li.strolch.runtime.configuration.ConfigurationParser;
import li.strolch.runtime.configuration.StrolchConfiguration;
import li.strolch.runtime.configuration.StrolchConfigurationException;

View File

@ -16,8 +16,8 @@
package li.strolch.runtime.test.component.model;
import li.strolch.model.Resource;
import li.strolch.runtime.agent.ComponentContainerImpl;
import li.strolch.runtime.agent.StrolchComponent;
import li.strolch.runtime.agent.api.StrolchComponent;
import li.strolch.runtime.agent.impl.ComponentContainerImpl;
public class PersistenceHandlerTestImpl extends StrolchComponent implements PersistenceHandlerTest {

View File

@ -15,8 +15,8 @@
*/
package li.strolch.runtime.test.component.model;
import li.strolch.runtime.agent.ComponentContainerImpl;
import li.strolch.runtime.agent.StrolchComponent;
import li.strolch.runtime.agent.api.StrolchComponent;
import li.strolch.runtime.agent.impl.ComponentContainerImpl;
public class PostInitializerTestImpl extends StrolchComponent implements PostInitializerTest {

View File

@ -15,8 +15,8 @@
*/
package li.strolch.runtime.test.component.model;
import li.strolch.runtime.agent.ComponentContainerImpl;
import li.strolch.runtime.agent.StrolchComponent;
import li.strolch.runtime.agent.api.StrolchComponent;
import li.strolch.runtime.agent.impl.ComponentContainerImpl;
public class ServiceHandlerTestImpl extends StrolchComponent implements ServiceHandlerTest {

View File

@ -33,7 +33,7 @@ import li.strolch.model.query.ParameterSelection;
import li.strolch.model.query.ResourceQuery;
import li.strolch.model.query.Selection;
import li.strolch.model.query.StrolchTypeNavigation;
import li.strolch.runtime.agent.StrolchAgent;
import li.strolch.runtime.agent.api.StrolchAgent;
import li.strolch.runtime.query.inmemory.InMemoryOrderQueryVisitor;
import li.strolch.runtime.query.inmemory.InMemoryQuery;
import li.strolch.runtime.query.inmemory.InMemoryResourceQueryVisitor;