org.apache.maven.scm.provider.jazz.command.consumer
Class AbstractRepositoryConsumer
java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.jazz.command.consumer.AbstractRepositoryConsumer
- All Implemented Interfaces:
- StreamConsumer
- Direct Known Subclasses:
- DebugLoggerConsumer, JazzAddConsumer, JazzBlameConsumer, JazzCheckInConsumer, JazzCheckOutConsumer, JazzHistoryConsumer, JazzListChangesetConsumer, JazzListConsumer, JazzStatusConsumer, JazzUpdateConsumer
public abstract class AbstractRepositoryConsumer
- extends AbstractConsumer
An extension of the AbstractConsumer class that also holds our Repository.
Field Summary |
protected boolean |
fed
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fed
protected boolean fed
AbstractRepositoryConsumer
public AbstractRepositoryConsumer(ScmProviderRepository repository,
ScmLogger logger)
- AbstractRepositoryConsumer constructor.
- Parameters:
logger
- The logger to use in the consumer
getRepository
public ScmProviderRepository getRepository()
- Returns:
- The repository.
setRepository
public void setRepository(ScmProviderRepository repository)
- Parameters:
repository
- The repository to set.
isFed
public boolean isFed()
- Returns:
- The fed.
setFed
public void setFed(boolean fed)
- Parameters:
fed
- The fed to set.
consumeLine
public void consumeLine(String line)
- Process one line of output from the execution of the "scm xxxx" command.
- Parameters:
line
- The line of output from the external command that has been pumped to us.- See Also:
StreamConsumer.consumeLine(java.lang.String)
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.