org.apache.maven.archiva.configuration
Class FileTypes

Package class diagram package FileTypes
java.lang.Object
  extended by org.apache.maven.archiva.configuration.FileTypes
All Implemented Interfaces:
org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, org.codehaus.plexus.registry.RegistryListener

public class FileTypes
extends java.lang.Object
implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, org.codehaus.plexus.registry.RegistryListener

FileTypes


Field Summary
static java.lang.String ARTIFACTS
           
static java.lang.String AUTO_REMOVE
           
static java.util.List<java.lang.String> DEFAULT_EXCLUSIONS
          Default exclusions from artifact consumers that are using the file types.
static java.lang.String IGNORED
           
static java.lang.String INDEXABLE_CONTENT
           
 
Constructor Summary
FileTypes()
           
 
Method Summary
 void afterConfigurationChange(org.codehaus.plexus.registry.Registry registry, java.lang.String propertyName, java.lang.Object propertyValue)
           
 void beforeConfigurationChange(org.codehaus.plexus.registry.Registry registry, java.lang.String propertyName, java.lang.Object propertyValue)
           
 java.util.List<java.lang.String> getFileTypePatterns(java.lang.String id)
           Get the list of patterns for a specified filetype.
 void initialize()
           
 boolean matchesArtifactPattern(java.lang.String relativePath)
           
 boolean matchesDefaultExclusions(java.lang.String relativePath)
           
 void setArchivaConfiguration(ArchivaConfiguration archivaConfiguration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARTIFACTS

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

AUTO_REMOVE

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

INDEXABLE_CONTENT

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

IGNORED

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

DEFAULT_EXCLUSIONS

public static final java.util.List<java.lang.String> DEFAULT_EXCLUSIONS
Default exclusions from artifact consumers that are using the file types. Note that this is simplistic in the case of the support files (based on extension) as it is elsewhere - it may be better to match these to actual artifacts and exclude later during scanning.

Constructor Detail

FileTypes

public FileTypes()
Method Detail

setArchivaConfiguration

public void setArchivaConfiguration(ArchivaConfiguration archivaConfiguration)

getFileTypePatterns

public java.util.List<java.lang.String> getFileTypePatterns(java.lang.String id)

Get the list of patterns for a specified filetype.

You will always get a list. In this order.

Parameters:
id - the id to lookup.
Returns:
the list of patterns.

matchesArtifactPattern

public boolean matchesArtifactPattern(java.lang.String relativePath)

matchesDefaultExclusions

public boolean matchesDefaultExclusions(java.lang.String relativePath)

initialize

public void initialize()
                throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

afterConfigurationChange

public void afterConfigurationChange(org.codehaus.plexus.registry.Registry registry,
                                     java.lang.String propertyName,
                                     java.lang.Object propertyValue)
Specified by:
afterConfigurationChange in interface org.codehaus.plexus.registry.RegistryListener

beforeConfigurationChange

public void beforeConfigurationChange(org.codehaus.plexus.registry.Registry registry,
                                      java.lang.String propertyName,
                                      java.lang.Object propertyValue)
Specified by:
beforeConfigurationChange in interface org.codehaus.plexus.registry.RegistryListener