de.smartics.maven.issues.factory
Class DefaultRepositoryFacadeFactory

Package class diagram package DefaultRepositoryFacadeFactory
java.lang.Object
  extended by de.smartics.maven.issues.factory.DefaultRepositoryFacadeFactory
All Implemented Interfaces:
RepositoryFacadeFactory

public class DefaultRepositoryFacadeFactory
     
     
extends Object
implements RepositoryFacadeFactory

Creates a repository facade factory.

A simple hard coded implementation.

Author:
Robert Reiner

Constructor Summary
DefaultRepositoryFacadeFactory()
          Default constructor.
 
Method Summary
 RepositoryFacade create(IssueManagementConfig config)
          Creates a facade for the given configuration.
 boolean supports(String issueManagementId)
          Checks if the factory supports the creation of a facade for the given issue management ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRepositoryFacadeFactory

public DefaultRepositoryFacadeFactory()
Default constructor.

Method Detail

create

public RepositoryFacade create(IssueManagementConfig config)
                        throws IllegalArgumentException
Creates a facade for the given configuration.

Specified by:
create in interface RepositoryFacadeFactory
Parameters:
config - the configuration to create the facade.
Returns:
the facade matching the requirements given in the configuration.
Throws:
IllegalArgumentException - if no facade can be created that matches the requirements of the given configuration.

supports

public boolean supports(String issueManagementId)
Checks if the factory supports the creation of a facade for the given issue management ID.

Specified by:
supports in interface RepositoryFacadeFactory
Parameters:
issueManagementId - the identifier provided in the Maven POM to identify the issue management system.
Returns:
true if the issue management system specified by the given issueManagementId is supported by this factory, false otherwise.
See Also:
RepositoryFacadeFactory.supports(java.lang.String)


Copyright © 2008-2010 Kronseder & Reiner GmbH - smartics. All Rights Reserved.