/**
* General support claas for all kinds of requests.
+ *
+ * @author Erik Brakkee
*/
public abstract class AbstractPageRequest implements PageRequest {
/**
* An action defined on a page.
+ *
+ * @author Erik Brakkee
*/
public interface Action {
/**
* Configuration which determines how a specific page must be retrieved and
* what transformation should be applied to it.
+ *
+ * @author Erik Brakkee
*/
public interface Configuration {
/**
* The object that actually obtains pages based on URL.
+ *
+ * @author Erik Brakkee
*/
public interface Crawler {
/**
* Gets a page by issueing a get request.
+ *
+ * @author Erik Brakkee
*/
public class GetPageRequest extends AbstractPageRequest {
/**
* Represents a retrieved page.
+ *
+ * @author Erik Brakkee
*/
public interface Page {
/**
* Exception thrown when there is a problem in retrieving or transforming the
* page.
+ *
+ * @author Erik Brakkee
*/
public class PageException extends Exception {
/**
* Represents a specific request to obtain and transform a page.
+ *
+ * @author Erik Brakkee
*/
public interface PageRequest {
/**
* Represents the type of a page determining how the HTML should be transformed into
* XML.
+ *
+ * @author Erik Brakkee
*/
public class PageType {
/**
* Retrieving pages using the post method.
+ *
+ * @author Erik Brakkee
*/
public class PostPageRequest extends AbstractPageRequest {
/**
* Action implementation.
+ *
+ * @author Erik Brakkee
*/
public class ActionImpl implements Action {
/**
* Test application which uses the crawler.
+ *
+ * @author Erik Brakkee
*/
public final class App {
/**
* Configuration item for obtaining an object in case a pattern matches.
+ *
+ * @author Erik Brakkee
*/
class ConfigItem<ValueType> {
/**
* Implementation of the configuration for the crawler.
+ *
+ * @author Erik Brakkee
*/
public class ConfigurationImpl implements Configuration {
/**
* Parsing of the configuration from an XML file.
+ *
+ * @author Erik Brakkee
*/
public class ConfigurationParser {
/**
* Crawler implementation.
+ *
+ * @author Erik Brakkee
*/
public class CrawlerImpl implements Crawler {
/**
* Page implementation.
+ *
+ * @author Erik Brakkee
*/
public class PageImpl implements Page {
/**
* Page type configuration.
+ *
+ * @author Erik Brakkee
*/
public class PageTypeConfig extends ConfigItem<PageRequest> {
/**
* Represents the configuration for specific URLs.
+ *
+ * @author Erik Brakkee
*/
public class UrlConfig extends ConfigItem<PageRequest> {
/**
/**
* Abstract visitor of the tv guide with default looping behavior.
+ *
+ * @author Erik Brakkee
*/
public abstract class AbstractVisitor implements Visitor {
/**
* Represents the programme for a tv channel.
+ *
+ * @author Erik Brakkee
*/
public class Channel {
/**
* Visitor which determines the interesting programs in the TV guide.
+ *
+ * @author Erik Brakkee
*/
public class MatchVisitor extends AbstractVisitor {
/**
* Print visitor for pretty printing the TV guide.
+ *
+ * @author Erik Brakkee
*/
public class PrintVisitor extends AbstractVisitor {
/**
* Represents a television program.
+ *
+ * @author Erik Brakkee
*/
public class Program {
/**
* The TV guide.
+ *
+ * @author Erik Brakkee
*/
public class TVGuide {
/**
* TIme at which a program starts or ends.
+ *
+ * @author Erik Brakkee
*/
public class Time implements Comparable {
/**
* Time interval.
+ *
+ * @author Erik Brakkee
*/
public class TimeInterval {
/**
* Visitor of the TV guide.
+ *
+ * @author Erik Brakkee
*/
public interface Visitor {
/**
* Represents an action to execute for an interesting program.
+ *
+ * @author Erik Brakkee
*/
public class InterestingProgramAction implements ProgramAction {
/**
* The KiSS crawler for automatic recording of interesting TV shows.
*
+ *
+ * @author Erik Brakkee
*/
public class KissCrawler {
/**
* Represents an action configured for a program.
+ *
+ * @author Erik Brakkee
*/
public interface ProgramAction {
/**
* Parse the configuration of desired programs.
+ *
+ * @author Erik Brakkee
*/
class ProgramConfigurationParser {
private static final int DEFAULT_PRIORITY = 1;
/**
* Obtains a list of interesting programs from a TV guide and decides what to do
* with them.
+ *
+ * @author Erik Brakkee
*/
public class ProgramFilter {
/**
* Represents an action to record a program.
+ *
+ * @author Erik Brakkee
*/
public class RecordProgramAction implements ProgramAction {
/**
* Represents a report on the actions of the crawler.
+ *
+ * @author Erik Brakkee
*/
public class Report {
/**
* Bean factory used for the standalone crawler application.
+ *
+ * @author Erik Brakkee
*/
public class StandaloneCrawlerBeanFactory extends SpringBeanFactory {
public StandaloneCrawlerBeanFactory() {
super(LOCATOR, FACTORY_NAME);
}
-}
\ No newline at end of file
+}
/**
* Access to system properties for the crawler.
+ *
+ * @author Erik Brakkee
*/
public final class SystemProperties {
/**
* A notifier that uses SMTP to notify users by mail.
*
+ *
+ * @author Erik Brakkee
*/
public class MailNotifier implements Notifier {
/**
* Mail server.
+ *
+ * @author Erik Brakkee
*/
public class MailServer {
* Notification exception thrown in case of problems sending a notification to a
* user.
*
+ *
+ * @author Erik Brakkee
*/
public class NotificationException extends Exception {
/**
* Object used to send notifications about the actions of the crawler.
*
+ *
+ * @author Erik Brakkee
*/
public interface Notifier {
/**
* Authenticator to supply username and password to the mail server (if needed).
*
+ *
+ * @author Erik Brakkee
*/
public class UsernamePasswordAuthenticator extends Authenticator {
/**
* Implementation which executes the KiSS crawler for retrieving web content.
+ *
+ * @author Erik Brakkee
*/
public class CrawlerExecutorImpl implements CrawlerExecutor {
/**
* Interface to the scheduler specific for working with the crawler.
+ *
+ * @author Erik Brakkee
*/
public interface CrawlerScheduler {
/**
* Quartz job to execute the crawler.
+ *
+ * @author Erik Brakkee
*/
public class CrawlerJob implements StatefulJob {
/**
* Interface to the Quartz scheduler.
+ *
+ * @author Erik Brakkee
*/
public class QuartzCrawlerScheduler implements CrawlerScheduler {
/**
* The mechanism for kick starting the scheduling of the KiSS crawler.
+ *
+ * @author Erik Brakkee
*/
public class Application implements ServletContextListener {
/**
*
+ *
+ * @author Erik Brakkee
*/
public class CrawlerServlet extends HttpServlet {
/**
* Bean factory for the crawler application.
+ *
+ * @author Erik Brakkee
*/
public class CrawlerBeanFactory extends SpringBeanFactory {
private static final String SELECTOR_NAME = "beanRefContext.xml";
/**
* Represents a coordinate system.
+ *
+ * @author Erik Brakkee
*/
public interface CoordinateSystem extends Serializable {
/**
* Coordinates in some 3-dimensional coordinate system.
+ *
+ * @author Erik Brakkee
*/
public class Coordinates implements Serializable {
/**
* Represents a plane. Usually used to represent a tangent plane to the earth surface to
* locally approximate the earth as flat.
+ *
+ * @author Erik Brakkee
*/
public class Plane {
/**
* Represents a point in some coordinate system.
+ *
+ * @author Erik Brakkee
*/
public class Point implements Serializable {
/**
* Reference coordinate system which is the basis for defining metrics.
* This is a Cartesian coordinate system.
+ *
+ * @author Erik Brakkee
*/
public class ReferenceCoordinateSystem implements CoordinateSystem {
* <li> x3: elevation in meters </li>
* </ul>
* This coordinate system models the earth as a sphere of a specific radius.
+ *
+ * @author Erik Brakkee
*/
public class SphericalCoordinateSystem implements CoordinateSystem {
/**
* <li> x3: elevation in meters </li>
* </ul>
* WGS84 models the earth as an ellipse.
+ *
+ * @author Erik Brakkee
*/
public class Wgs84CoordinateSystem implements CoordinateSystem {
/*
/**
* Represents a GPS track.
+ *
+ * @author Erik Brakkee
*/
public class Track implements Serializable {
* A point from a GPS track.
*
* TODO should be extended with additional information (e.g. date/time if available).
+ *
+ * @author Erik Brakkee
*/
public class TrackPoint extends Point {
/**
* Parser for GPX tracks.
+ *
+ * @author Erik Brakkee
*/
public class GpxParser {
/**
* Parses a GPX file and prints out a data file with each trackpoints distance from the start of the
* track and its elevation, separated 0by a space.
+ *
+ * @author Erik Brakkee
*/
public class GpxPlotter {
/**
* Extension of XY plot that provides automatic zooming of the background
* image.
+ *
+ * @author Erik Brakkee
*/
public class ZoomableBackgroundXYPlot extends XYPlot {
/**
* Utility functions for processing JPEG images.
+ *
+ * @author Erik Brakkee
*/
public class JpegUtils {
/**
/**
*
+ *
+ * @author Erik Brakkee
*/
public class Application implements ServletContextListener {
private static final Log LOG = LogFactory.getLog(Application.class);
/**
*
+ *
+ * @author Erik Brakkee
*/
@Entity
@Table(name="channel")
/**
*
+ *
+ * @author Erik Brakkee
*/
public enum FileType {
/**
* Link structure.
+ *
+ * @author Erik Brakkee
*/
public class LinkStructure implements Listener {
/**
* Bean factory for the crawler application.
+ *
+ * @author Erik Brakkee
*/
public class MythtvBeanFactory extends SpringBeanFactory {
private static final String SELECTOR_NAME = "beanRefContext.xml";
/**
*
+ *
+ * @author Erik Brakkee
*/
public class MythtvHibernateMappings extends HibernateMappingFiles {
/**
*
+ *
+ * @author Erik Brakkee
*/
@Entity
@Table(name="recorded")
/**
*
+ *
+ * @author Erik Brakkee
*/
public class RecordingDatabase {
/**
*
+ *
+ * @author Erik Brakkee
*/
@Embeddable
public class RecordingPk implements Serializable {
/**
*
+ *
+ * @author Erik Brakkee
*/
public class ScheduleConfig {
/**
*
+ *
+ * @author Erik Brakkee
*/
@MessageDriven(name = "TimerBean")
// Spring's JTA transaction manager does not work with container managed transactions
/**
* Matches any user.
+ *
+ * @author Erik Brakkee
*/
public class AnyUserCondition extends AbstractPersistent implements UserCondition {
/**
* Authorization exception to be thrown when
* a resouce may not be accessed.
+ *
+ * @author Erik Brakkee
*/
public class AuthorizationException extends RuntimeException {
/**
* Represents the result of an authorization decision.
+ *
+ * @author Erik Brakkee
*/
public enum AuthorizationResult {
/**
/**
* Represents an authorization rule to determine whether an operation is allowed on a resource.
+ *
+ * @author Erik Brakkee
*/
public interface AuthorizationRule extends Persistent {
/**
* Service to determine if access to a certain resource is allowed.
+ *
+ * @author Erik Brakkee
*/
public interface AuthorizationService extends Persistent {
/**
* Represents an operation to create something.
+ *
+ * @author Erik Brakkee
*/
public class CreateOperation extends AllOperation {
* of authorization rules in a fixed order. The first rule that gives a result GRANTED or
* DENIED determines the result of the evaluation. Rules that return any other result are
* ignoed. If none of the rules match, than access is denied.
+ *
+ * @author Erik Brakkee
*/
public class DefaultAuthorizationService extends AbstractPersistent implements AuthorizationService {
* Operation registry implementation.
* This implementation ignores the distinction between different types of resources
* and simply assumes that every operation is applicable to every type of resource.
+ *
+ * @author Erik Brakkee
*/
public class DefaultOperationRegistry implements OperationRegistry {
/**
* Deletes the operation.
+ *
+ * @author Erik Brakkee
*/
public class DeleteOperation extends AllOperation {
/**
* Checks if a user against a specific group.
+ *
+ * @author Erik Brakkee
*/
public class GroupUserCondition extends AbstractPersistent implements UserCondition {
* Represents an operation on a resource.
* An operation should contain no state to be persisted since only the name of the
* operation is persisted.
+ *
+ * @author Erik Brakkee
*/
public interface Operation {
/**
* Checks if an operation matches a condition.
+ *
+ * @author Erik Brakkee
*/
public interface OperationCondition extends Persistent {
/**
* Utility to map between a list of operations and a string based
* on the names of the operations.
+ *
+ * @author Erik Brakkee
*/
public interface OperationRegistry {
/**
* Checks if a path satisfies a condition.
+ *
+ * @author Erik Brakkee
*/
public interface PathCondition extends Persistent {
/**
* Represents a read operation on a resource.
+ *
+ * @author Erik Brakkee
*/
public class ReadOperation extends AllOperation {
/**
* Condition to check whether a path matches a given regula expression.
+ *
+ * @author Erik Brakkee
*/
public class RegexpPathCondition extends AbstractPersistent implements PathCondition {
/**
* Condition to check whether a path starts with a given string.
+ *
+ * @author Erik Brakkee
*/
public class StartsWithPathCondition extends RegexpPathCondition {
/**
* Condition used to match a user against a specified set of users.
+ *
+ * @author Erik Brakkee
*/
public interface UserCondition extends Persistent {
/**
* Represents a write operation on a resource.
+ *
+ * @author Erik Brakkee
*/
public class WriteOperation extends AllOperation {
* Authorization service with persistent storage.
* This is a wrapper for {@link org.wamblee.security.authorization.DefaultAuthorizationService}
* which refreshes the state of the service at certain time intervals.
+ *
+ * @author Erik Brakkee
*/
public class PersistentAuthorizationService extends AbstractPersistent
implements AuthorizationService {
/**
* MD5 Hex encoder.
+ *
+ * @author Erik Brakkee
*/
public class Md5HexMessageDigester implements MessageDigester {
/**
* Represents a group.
+ *
+ * @author Erik Brakkee
*/
public class Group extends AbstractPersistent implements Serializable, Comparable {
/**
* Represents a set of groups. A typical implemnetation would be, a readonly implementation
* defined in a configuration file or a list of groups defined in a database.
+ *
+ * @author Erik Brakkee
*/
public interface GroupSet {
/**
* In-memory group set implementation.
+ *
+ * @author Erik Brakkee
*/
public class InMemoryGroupSet implements GroupSet {
/**
* In-memory user set.
+ *
+ * @author Erik Brakkee
*/
public class InMemoryUserSet extends AbstractUserSet {
/**
* Implementation of the user accessor that retrieves user information
* from JAAS.
+ *
+ * @author Erik Brakkee
*/
public class JaasUserAccessor implements UserAccessor {
/**
* Validator of names.
+ *
+ * @author Erik Brakkee
*/
public interface NameValidator {
/**
* Validation of names based on a regular expression.
+ *
+ * @author Erik Brakkee
*/
public class RegexpNameValidator implements NameValidator {
/**
* Interface for accessing the currently logged in user.
+ *
+ * @author Erik Brakkee
*/
public interface UserAccessor {
/**
/**
* User administration initializer. It populates the user administration with a
* number of groups and users but only in case no users exist.
+ *
+ * @author Erik Brakkee
*/
public class UserAdminInitializer {
/**
* Interface for user administration. Manages the users and groups.
+ *
+ * @author Erik Brakkee
*/
public interface UserAdministration {
/**
* Administration of users and groups.
+ *
+ * @author Erik Brakkee
*/
public class UserAdministrationImpl implements UserAdministration {
/**
* User management exception.
+ *
+ * @author Erik Brakkee
*/
public class UserMgtException extends Exception {
* Represents a set of users.
* Typical implementations would be an implementation based on a static configuration file or
* an implementation backed by a database.
+ *
+ * @author Erik Brakkee
*/
public interface UserSet {
/**
* Set of groups backed by the database.
+ *
+ * @author Erik Brakkee
*/
public class HibernateGroupSet extends HibernateSupport implements GroupSet {
/**
* User set backed by the database.
+ *
+ * @author Erik Brakkee
*/
public class HibernateUserSet extends AbstractUserSet {
/**
* Tests the authorization service.
+ *
+ * @author Erik Brakkee
*/
public class AuthorizationServiceTest extends SpringTestCase {
/**
* Test of the operation registry.
+ *
+ * @author Erik Brakkee
*/
public class DefaultOperationRegistryTest extends TestCase {
/**
* Test for regular expression matching.
+ *
+ * @author Erik Brakkee
*/
public class RegexpPathConditionTest extends TestCase {
/**
* Tests for StartsWithPathCondition.
+ *
+ * @author Erik Brakkee
*/
public class StartsWithPathConditionTest extends TestCase {
/**
* Test authorization rule that also counts the number of times the rule matches.
+ *
+ * @author Erik Brakkee
*/
public class TestAuthorizationRule extends UrlAuthorizationRule {
/**
* A test resource for authorization.
+ *
+ * @author Erik Brakkee
*/
public class TestResource {
/**
* User access that always returns a user that belongs to
* a fixed group.
+ *
+ * @author Erik Brakkee
*/
public class TestUserAccessor implements UserAccessor {
/**
* Tests for the {@link org.wamblee.security.authorization.UrlAuthorizationRule}.
+ *
+ * @author Erik Brakkee
*/
public class UrlAuthorizationRuleTest extends TestCase {
/**
* Mapping files for authorization.
+ *
+ * @author Erik Brakkee
*/
public class AuthorizationMappingFiles extends UsermgtHibernateMappingFiles {
/**
*
+ *
+ * @author Erik Brakkee
*/
public class AuthorizationSpringConfigFiles extends UsermgtSpringConfigFiles {
/**
* Unit test for the persistent authorization service.
+ *
+ * @author Erik Brakkee
*/
public class PersistentAuthorizationServiceTest extends AuthorizationServiceTest {
/**
* Tests for the message digester.
+ *
+ * @author Erik Brakkee
*/
public class MessageDigesterTest extends TestCase {
/**
* Test of user administration implementation.
+ *
+ * @author Erik Brakkee
*/
public class UserAdministrationImplTest extends SpringTestCase {
/**
* Hibernate mapping files for user management.
+ *
+ * @author Erik Brakkee
*/
public class UsermgtHibernateMappingFiles extends HibernateMappingFiles {
/**
* Spring config files for user management.
+ *
+ * @author Erik Brakkee
*/
public class UsermgtSpringConfigFiles extends SpringConfigFiles {
/**
* User management test utilities.
+ *
+ * @author Erik Brakkee
*/
public class UsermgtTestUtils {
/**
* Tests for {@link org.wamblee.usermgt.hibernate.HibernateGroupSet}
+ *
+ * @author Erik Brakkee
*/
public class HibernateGroupSetTest extends InMemoryGroupSetTest {
* the same test cases as {@link org.wamblee.usermgt.UserAdministrationImplTest}
* with in addition, one test case that executes all Hibernate test cases
* separately with each test case in its own transaction.
+ *
+ * @author Erik Brakkee
*/
public class HibernateUserAdministrationTest extends UserAdministrationImplTest {
/**
* Tests for {@link org.wamblee.usermgt.hibernate.HibernateGroupSet}
+ *
+ * @author Erik Brakkee
*/
public class HibernateUserSetTest extends InMemoryUserSetTest {
/**
* Forwarder thread which handles forwarding of an input stream to
* an output stream.
+ *
+ * @author Erik Brakkee
*/
public class ForwarderThread extends Thread {
*
* TODO To change the template for this generated type comment go to Window -
* Preferences - Java - Code Style - Code Templates
+ *
+ * @author Erik Brakkee
*/
public class SocketProxy {
* Represents a cached object. The object is either retrieved from the cache if
* the cache has it, or a call back is invoked to get the object (and put it in
* the cache).
+ *
+ * @author Erik Brakkee
*/
public class CachedObject<KeyType extends Serializable, ValueType extends Serializable> {
/**
* Cache implemented on top of EhCache.
+ *
+ * @author Erik Brakkee
*/
public class EhCache<KeyType extends Serializable, ValueType extends Serializable>
implements org.wamblee.cache.Cache<KeyType, ValueType> {
/**
* A very simple cache based on a HashMap, It never expires any entries, and has
* no bounds on its size.
+ *
+ * @author Erik Brakkee
*/
public class ForeverCache<KeyType extends Serializable, ValueType extends Serializable>
implements Cache<KeyType, ValueType> {
* A cache that does not cache. This implementation is useful for disabling caching.
* Because of this implementation, application code does not need to distinguish
* between the situation where it a cache is used and where it isn't.
+ *
+ * @author Erik Brakkee
*/
public class ZeroCache<KeyType extends Serializable, ValueType extends Serializable>
implements Cache<KeyType, ValueType> {
/**
* In memory JVM lock.
+ *
+ * @author Erik Brakkee
*/
public class JvmLock implements Lock {
* Represents a re-entrant lock.
* Implementations can provide inmemory JVM locking or full cluster safe locking
* mechanisms.
+ *
+ * @author Erik Brakkee
*/
public interface Lock {
/**
* Locking advice. This automatically synchronized an object using a given lock.
+ *
+ * @author Erik Brakkee
*/
public class LockAdvice implements MethodInterceptor {
/**
* Represents a logical and of different boolean conditions.
+ *
+ * @author Erik Brakkee
*/
public class AndCondition<T> implements Condition<T> {
/**
* Determines if an object matches a certain condition.
+ *
+ * @author Erik Brakkee
*/
public interface Condition<T> {
/**
* Condition which always returns a fixed value.
+ *
+ * @author Erik Brakkee
*/
public class FixedCondition<T> implements Condition<T> {
/**
* Represents a logical or of different boolean conditions.
+ *
+ * @author Erik Brakkee
*/
public class OrCondition<T> implements Condition<T> {
/**
* Condition to check whether a given property value matches a certain
* regular expression.
+ *
+ * @author Erik Brakkee
*/
public class PropertyRegexCondition<T> implements Condition<T> {
/**
* Bean factory used to obtain objects in a transparent way.
+ *
+ * @author Erik Brakkee
*/
public interface BeanFactory {
/**
* Exception thrown by the BeanFactory if an object could not be found.
+ *
+ * @author Erik Brakkee
*/
public class BeanFactoryException extends RuntimeException {
static final long serialVersionUID = -1215992188624874902L;
* Type of the first object.
* @param <U>
* Type of the second object.
+ *
+ * @author Erik Brakkee
*/
public class Pair<T, U> {
/**
* Monitors a directory for changes.
+ *
+ * @author Erik Brakkee
*/
public class DirectoryMonitor {
/**
* Resource implemention for reading from a file.
+ *
+ * @author Erik Brakkee
*/
public class FileResource implements InputResource {
/**
/**
* Represents a resource from which information can be read.
+ *
+ * @author Erik Brakkee
*/
public interface InputResource {
/**
/**
* Input resource based on an input stream.
+ *
+ * @author Erik Brakkee
*/
public class StreamResource implements InputResource {
/**
* Default observer notifier which calls
* {@link org.wamblee.observer.Observer#send(ObservableType, Event)}
* immediately.
+ *
+ * @author Erik Brakkee
*/
public class DefaultObserverNotifier<ObservableType, Event> implements
ObserverNotifier<ObservableType, Event> {
/**
* This is a type-safe version of {@link java.util.Observable}.
+ *
+ * @author Erik Brakkee
*/
public interface Observer<ObservableType, Event> {
/**
* Implementation of notification of subscribers.
+ *
+ * @author Erik Brakkee
*/
public interface ObserverNotifier<ObservableType, Event> {
/**
* Default implementation of Persistent.
+ *
+ * @author Erik Brakkee
*/
public abstract class AbstractPersistent implements Persistent {
/**
* Hibernate mapping files to use.
+ *
+ * @author Erik Brakkee
*/
public class HibernateMappingFiles extends ArrayList<String> {
/**
* Extension of
* {@link org.springframework.orm.hibernate.support.HibernateDaoSupport}.
+ *
+ * @author Erik Brakkee
*/
public class HibernateSupport extends HibernateDaoSupport {
/**
* Some basic XML utilities for common reoccuring tasks for DOM documents.
+ *
+ * @author Erik Brakkee
*/
public final class DomUtils {
/**
* Exception thrown in case of XML parsing problems.
+ *
+ * @author Erik Brakkee
*/
public class XMLException extends Exception {
/**
* XSL transformer for simplified usage of XSL transformations.
+ *
+ * @author Erik Brakkee
*/
public class XslTransformer {
/**
* Cached object test.
+ *
+ * @author Erik Brakkee
*/
public class CachedObjectTest extends TestCase {
/**
* Tests for the JVMLock.
+ *
+ * @author Erik Brakkee
*/
public abstract class AbstractLockTestCase extends TestCase {
/**
* Tests for the JVMLock.
+ *
+ * @author Erik Brakkee
*/
public class JvmLockTest extends AbstractLockTestCase {
/**
*
+ *
+ * @author Erik Brakkee
*/
public class LockAdviceTest extends AbstractLockTestCase {
/**
* Tests the Or Condition.
+ *
+ * @author Erik Brakkee
*/
public class AndConditionTest extends TestCase {
/**
* Test condition object.
+ *
+ * @author Erik Brakkee
*/
public class GreaterThanCondition implements Condition<Integer> {
/**
* Test condition object.
+ *
+ * @author Erik Brakkee
*/
public class LessThanCondition implements Condition<Integer> {
/**
* Tests the Or Condition.
+ *
+ * @author Erik Brakkee
*/
public class OrConditionTest extends TestCase {
/**
* Tests {@link org.wamblee.conditions.PropertyRegexCondition}.
+ *
+ * @author Erik Brakkee
*/
public class PropertyRegexConditionTest extends TestCase {
/**
*
+ *
+ * @author Erik Brakkee
*/
public class TestBean {
* Tests the bean kernel. The lookup of the bean factory itself can be tested
* only partially. Using a global property file for all test cases would tie all
* test cases together therefore no global property file is used.
+ *
+ * @author Erik Brakkee
*/
public class BeanKernelTest extends TestCase {
}
-}
\ No newline at end of file
+}
/**
* Tests the spring bean factory.
+ *
+ * @author Erik Brakkee
*/
public class SpringBeanFactoryTest extends TestCase {
/**
* Test bean factory.
+ *
+ * @author Erik Brakkee
*/
public class TestBeanFactory extends SpringBeanFactory {
/**
*
+ *
+ * @author Erik Brakkee
*/
public class DirectoryMonitorTestProgram {
/**
* Tests the file resource.
+ *
+ * @author Erik Brakkee
*/
public class FileResourceTest extends TestCase {
/**
* File system utilities.
+ *
+ * @author Erik Brakkee
*/
public final class FileSystemUtils {
/**
* Tests the stream resource.
+ *
+ * @author Erik Brakkee
*/
public class StreamResourceTest extends TestCase {
/**
* Test of the observer pattern implementation.
+ *
+ * @author Erik Brakkee
*/
public class ObservableTest extends MockObjectTestCase {
/**
* Represents a database.
+ *
+ * @author Erik Brakkee
*/
public interface Database {
/**
/**
* Useful assertions for use in test cases.
+ *
+ * @author Erik Brakkee
*/
public final class AssertionUtils {
* Type of event sent from test code. Usually String will be
* sufficient. The event type must provide a sensible implementation
* of {@link java.lang.Object#equals(java.lang.Object)}.
+ *
+ * @author Erik Brakkee
*/
public class EventTracker<Event> {
/**
* Exporting the hibernate mapping.
+ *
+ * @author Erik Brakkee
*/
public final class HibernateExporter {
/**
* Exporting the hibernate mapping.
+ *
+ * @author Erik Brakkee
*/
public final class HibernateUpdater {
/**
* Hibernate utilities.
+ *
+ * @author Erik Brakkee
*/
public final class HibernateUtils {
/**
* Spring configuration files to use.
+ *
+ * @author Erik Brakkee
*/
public class SpringConfigFiles extends ArrayList<String> {
/**
* Bean factory which uses Spring.
+ *
+ * @author Erik Brakkee
*/
public class TestSpringBeanFactory implements BeanFactory {
/**
* @author Erik Test support utility.
+ *
+ * @author Erik Brakkee
*/
public final class TestSupport {
/**
* Transaction callback for testing. The test will fail if any type of exception
* is thrown.
+ *
+ * @author Erik Brakkee
*/
public interface TestTransactionCallback {
/**
/**
* Transaction callback for testing. The test will fail if any type of exception
* is thrown.
+ *
+ * @author Erik Brakkee
*/
public interface TestTransactionCallbackWithoutResult {
/**
/**
* Timing utilities.
+ *
+ * @author Erik Brakkee
*/
public final class TimingUtils {
/**
* Tests for {@link org.wamblee.xml.ClasspathUriResolver}.
+ *
+ * @author Erik Brakkee
*/
public class ClasspathUriResolverTest extends TestCase {
/**
* XML test support utilities.
+ *
+ * @author Erik Brakkee
*/
public final class XmlUtils {
/**
* Tests the XSL transformer.
+ *
+ * @author Erik Brakkee
*/
public class XslTransformerTest extends TestCase {
/**
* Default implementation of a service descriptor.
+ *
+ * @author Erik Brakkee
*/
public abstract class AbstractServiceDescriptor implements ServiceDescriptor {
/**
* Composite system consisting of multiple subsystems.
+ *
+ * @author Erik Brakkee
*/
public class CompositeSystem extends AbstractSubSystem {
/**
* Default service implementation.
+ *
+ * @author Erik Brakkee
*/
public class DefaultService implements Service {
/**
* Represents a running service.
+ *
+ * @author Erik Brakkee
*/
public interface Service {
* for matching services.
*
* Implementations must implement {@link #equals(Object)} and {@link #hashCode()}.
+ *
+ * @author Erik Brakkee
*/
public interface ServiceDescriptor {
/**
* A sub system represents a part of a system that required a
* number of services and provides a number of services.
+ *
+ * @author Erik Brakkee
*/
public interface SubSystem {
/**
* Assembler to control multiple subsystems. It makes sure that all dependencies
* are met and controls the order in which systems are initialized.
+ *
+ * @author Erik Brakkee
*/
public class SystemAssembler {
/**
* Exception thrown when an error occurs in assembling the systems.
+ *
+ * @author Erik Brakkee
*/
public class SystemAssemblyException extends RuntimeException {
/**
* Represents a system configured based on spring.
+ *
+ * @author Erik Brakkee
*/
public class SpringSystem extends AbstractSubSystem {