[jboss-cvs] JBossAS SVN: r85546 - branches/Branch_5_x/system/src/main/org/jboss/system/tools.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Mar 6 11:00:01 EST 2009
Author: emuckenhuber
Date: 2009-03-06 11:00:00 -0500 (Fri, 06 Mar 2009)
New Revision: 85546
Removed:
branches/Branch_5_x/system/src/main/org/jboss/system/tools/SerializableDeploymentRepositoryAdapter.java
Log:
delete SerializableDeploymentRepositoryAdapter.java
Deleted: branches/Branch_5_x/system/src/main/org/jboss/system/tools/SerializableDeploymentRepositoryAdapter.java
===================================================================
--- branches/Branch_5_x/system/src/main/org/jboss/system/tools/SerializableDeploymentRepositoryAdapter.java 2009-03-06 15:47:22 UTC (rev 85545)
+++ branches/Branch_5_x/system/src/main/org/jboss/system/tools/SerializableDeploymentRepositoryAdapter.java 2009-03-06 16:00:00 UTC (rev 85546)
@@ -1,68 +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.system.tools;
-
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.net.URL;
-import java.util.List;
-import java.util.ArrayList;
-
-import org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository;
-
-/**
- * Serializable deployment repository adapter.
- *
- * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
- */
-public class SerializableDeploymentRepositoryAdapter extends AbstractDeploymentRepositoryAdapter
-{
- public SerializableDeploymentRepositoryAdapter(SerializableDeploymentRepository repository)
- {
- super(repository);
- }
-
- public void addURL(URL url) throws URISyntaxException
- {
- SerializableDeploymentRepository repository = (SerializableDeploymentRepository)getRepository();
- URI[] uris = repository.getApplicationURIs();
- int length = uris.length;
- URI[] temp = new URI[length + 1];
- System.arraycopy(uris, 0, temp, 0, length);
- temp[length] = url.toURI();
- repository.setApplicationURIs(temp);
- }
-
- public void removeURL(URL url) throws URISyntaxException
- {
- SerializableDeploymentRepository repository = (SerializableDeploymentRepository)getRepository();
- URI toURI = url.toURI();
- URI[] uris = repository.getApplicationURIs();
- List<URI> temp = new ArrayList<URI>();
- for (URI uri : uris)
- {
- if (uri.equals(toURI) == false)
- temp.add(uri);
- }
- repository.setApplicationURIs(temp.toArray(new URI[temp.size()]));
- }
-}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list