[dna-commits] DNA SVN: r225 - in trunk/dna-repository/src/main/java/org/jboss/dna/repository: federation and 1 other directory.

dna-commits at lists.jboss.org dna-commits at lists.jboss.org
Mon Jun 2 15:32:56 EDT 2008


Author: rhauch
Date: 2008-06-02 15:32:55 -0400 (Mon, 02 Jun 2008)
New Revision: 225

Added:
   trunk/dna-repository/src/main/java/org/jboss/dna/repository/federation/
   trunk/dna-repository/src/main/java/org/jboss/dna/repository/federation/FederationService.java
Removed:
   trunk/dna-repository/src/main/java/org/jboss/dna/repository/FederationService.java
Log:
Moved FederationService into the "org.jboss.dna.repository.federation" package.

Deleted: trunk/dna-repository/src/main/java/org/jboss/dna/repository/FederationService.java
===================================================================
--- trunk/dna-repository/src/main/java/org/jboss/dna/repository/FederationService.java	2008-06-02 19:27:13 UTC (rev 224)
+++ trunk/dna-repository/src/main/java/org/jboss/dna/repository/FederationService.java	2008-06-02 19:32:55 UTC (rev 225)
@@ -1,83 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors. 
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.dna.repository;
-
-import java.util.concurrent.TimeUnit;
-import org.jboss.dna.common.util.ArgCheck;
-import org.jboss.dna.repository.services.AbstractServiceAdministrator;
-import org.jboss.dna.repository.services.AdministeredService;
-import org.jboss.dna.repository.services.ServiceAdministrator;
-import org.jboss.dna.spi.graph.connection.RepositorySource;
-
-/**
- * @author Randall Hauch
- */
-public class FederationService implements AdministeredService {
-
-    /**
-     * The administrative component for this service.
-     * @author Randall Hauch
-     */
-    protected class Administrator extends AbstractServiceAdministrator {
-
-        protected Administrator() {
-            super(RepositoryI18n.federationServiceName, State.STARTED);
-        }
-
-        /**
-         * {@inheritDoc}
-         */
-        public boolean awaitTermination( long timeout, TimeUnit unit ) {
-            return true;
-        }
-
-    }
-
-    private RepositorySource bootstrapSource;
-    private final Administrator administrator = new Administrator();
-
-    /**
-     * Create a federation service instance
-     * @param bootstrapSource the repository source that should be used to bootstrap the federation service
-     * @throws IllegalArgumentException if the bootstrap source is null
-     */
-    public FederationService( RepositorySource bootstrapSource ) {
-        ArgCheck.isNotNull(bootstrapSource, "bootstrapSource");
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public ServiceAdministrator getAdministrator() {
-        return this.administrator;
-    }
-
-    /**
-     * Get the repository source used to obtain connections to the repository containing the configuration information for this
-     * federation service.
-     * @return bootstrapSource
-     */
-    public RepositorySource getBootstrapSource() {
-        return this.bootstrapSource;
-    }
-
-}

Copied: trunk/dna-repository/src/main/java/org/jboss/dna/repository/federation/FederationService.java (from rev 220, trunk/dna-repository/src/main/java/org/jboss/dna/repository/FederationService.java)
===================================================================
--- trunk/dna-repository/src/main/java/org/jboss/dna/repository/federation/FederationService.java	                        (rev 0)
+++ trunk/dna-repository/src/main/java/org/jboss/dna/repository/federation/FederationService.java	2008-06-02 19:32:55 UTC (rev 225)
@@ -0,0 +1,84 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors. 
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.dna.repository.federation;
+
+import java.util.concurrent.TimeUnit;
+import org.jboss.dna.common.util.ArgCheck;
+import org.jboss.dna.repository.RepositoryI18n;
+import org.jboss.dna.repository.services.AbstractServiceAdministrator;
+import org.jboss.dna.repository.services.AdministeredService;
+import org.jboss.dna.repository.services.ServiceAdministrator;
+import org.jboss.dna.spi.graph.connection.RepositorySource;
+
+/**
+ * @author Randall Hauch
+ */
+public class FederationService implements AdministeredService {
+
+    /**
+     * The administrative component for this service.
+     * @author Randall Hauch
+     */
+    protected class Administrator extends AbstractServiceAdministrator {
+
+        protected Administrator() {
+            super(RepositoryI18n.federationServiceName, State.STARTED);
+        }
+
+        /**
+         * {@inheritDoc}
+         */
+        public boolean awaitTermination( long timeout, TimeUnit unit ) {
+            return true;
+        }
+
+    }
+
+    private RepositorySource bootstrapSource;
+    private final Administrator administrator = new Administrator();
+
+    /**
+     * Create a federation service instance
+     * @param bootstrapSource the repository source that should be used to bootstrap the federation service
+     * @throws IllegalArgumentException if the bootstrap source is null
+     */
+    public FederationService( RepositorySource bootstrapSource ) {
+        ArgCheck.isNotNull(bootstrapSource, "bootstrapSource");
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    public ServiceAdministrator getAdministrator() {
+        return this.administrator;
+    }
+
+    /**
+     * Get the repository source used to obtain connections to the repository containing the configuration information for this
+     * federation service.
+     * @return bootstrapSource
+     */
+    public RepositorySource getBootstrapSource() {
+        return this.bootstrapSource;
+    }
+
+}


Property changes on: trunk/dna-repository/src/main/java/org/jboss/dna/repository/federation/FederationService.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain




More information about the dna-commits mailing list