org.apache.maven.plugin.ear.output
Class FileNameMappingFactory

java.lang.Object
  extended by org.apache.maven.plugin.ear.output.FileNameMappingFactory

public class FileNameMappingFactory
extends java.lang.Object

Provides access to FileNameMapping implementations.

Two basic implementations are provided by default:

Version:
$Id: FileNameMappingFactory.java 485857 2006-12-11 20:34:39Z snicoll $
Author:
Stephane Nicoll

Field Summary
static java.lang.String FULL_FILE_NAME_MAPPING
           
static FileNameMappingFactory INSTANCE
           
static java.lang.String STANDARD_FILE_NAME_MAPPING
           
 
Method Summary
 FileNameMapping getDefaultFileNameMapping()
           
 FileNameMapping getFileNameMapping(java.lang.String nameOrClass)
          Returns the file name mapping implementation based on a logical name of a fully qualified name of the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STANDARD_FILE_NAME_MAPPING

public static final java.lang.String STANDARD_FILE_NAME_MAPPING
See Also:
Constant Field Values

FULL_FILE_NAME_MAPPING

public static final java.lang.String FULL_FILE_NAME_MAPPING
See Also:
Constant Field Values

INSTANCE

public static final FileNameMappingFactory INSTANCE
Method Detail

getDefaultFileNameMapping

public FileNameMapping getDefaultFileNameMapping()

getFileNameMapping

public FileNameMapping getFileNameMapping(java.lang.String nameOrClass)
                                   throws java.lang.IllegalStateException
Returns the file name mapping implementation based on a logical name of a fully qualified name of the class.

Parameters:
nameOrClass - a name of the fqn of the implementation
Returns:
the file name mapping implementation
Throws:
java.lang.IllegalStateException - if the implementation is not found


Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.