krysalis-update/src/java/org/krysalis/depot/update/updater ConfiguredArtifactUpdater.java,NONE,1.1 DefaultArtifactUpdater.java,NONE,1.1
Nick Chalko <[email protected]> Wed, 08 Dec 2004 09:06:29 +0000
| Newsgroups | gmane.comp.krysalis.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/krysalis/krysalis-update/src/java/org/krysalis/depot/update/updater
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24726/src/java/org/krysalis/depot/update/updater
Added Files:
ConfiguredArtifactUpdater.java DefaultArtifactUpdater.java
Log Message:
Copied from the apache incubator.
--- NEW FILE: ConfiguredArtifactUpdater.java ---
/*
* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.krysalis.depot.update.updater;
import org.krysalis.depot.update.ArtifactUpdater;
import org.krysalis.depot.update.UpdateException;
import org.krysalis.depot.update.config.UpdaterConfig;
/**
* A StandardResourceUpdater is a {@link org.krysalis.depot.update.updater.DefaultArtifactUpdater }
* that configures itself from an XML configuration file.
*
* @author arb_jack
*/
public class ConfiguredArtifactUpdater extends DefaultArtifactUpdater {
private String m_filename = "updater.xml";
/**
* @param id
* @throws UpdateException
*/
public ConfiguredArtifactUpdater(String id, String filename) throws UpdateException {
super(id);
m_filename = filename;
initClass();
}
/**
* @param id
* @throws UpdateException
*/
public ConfiguredArtifactUpdater(ArtifactUpdater.Identifier id, String filename)
throws UpdateException {
super(id);
m_filename = filename;
initClass();
}
/**
* @throws UpdateException
*/
public ConfiguredArtifactUpdater() throws UpdateException {
super();
initClass();
}
private void initClass() {
// Configure from the XML file...
UpdaterConfig.configure(m_filename);
}
}
--- NEW FILE: DefaultArtifactUpdater.java ---
/*
* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.krysalis.depot.update.updater;
import org.krysalis.depot.update.ArtifactUpdater;
import org.krysalis.depot.update.UpdateException;
/**
* A DefaultResourceUpdater is a {@link org.krysalis.depot.update.ArtifactUpdater} with the
* default settings selected.
*
* @see DefaultResourceUpdater, StandardResourceUpdater
*
* @author arb_jack
*/
public class DefaultArtifactUpdater extends ArtifactUpdater {
/**
* @param id
* @throws UpdateException
*/
public DefaultArtifactUpdater(String id) throws UpdateException {
super(id);
// TODO Auto-generated constructor stub
}
/**
* @param id
* @throws UpdateException
*/
public DefaultArtifactUpdater(ArtifactUpdater.Identifier id)
throws UpdateException {
super(id);
// TODO Auto-generated constructor stub
}
/**
* @throws UpdateException
*/
public DefaultArtifactUpdater() throws UpdateException {
super();
// TODO Auto-generated constructor stub
}
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/