org.apache.maven.profiles.build
Class DefaultProfileAdvisor

java.lang.Object
  extended by org.apache.maven.profiles.build.DefaultProfileAdvisor
All Implemented Interfaces:
ProfileAdvisor, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

@Component(role=ProfileAdvisor.class)
public class DefaultProfileAdvisor
extends java.lang.Object
implements ProfileAdvisor, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable


Field Summary
static java.lang.String ROLE_HINT
           
 
Fields inherited from interface org.apache.maven.profiles.build.ProfileAdvisor
ROLE
 
Constructor Summary
DefaultProfileAdvisor()
           
 
Method Summary
 java.util.List applyActivatedExternalProfiles(Model model, java.io.File projectDir, ProfileManager externalProfileManager)
           
 java.util.List applyActivatedProfiles(Model model, java.io.File pomFile, boolean useProfilesXml, ProfileActivationContext activationContext)
           
 void contextualize(org.codehaus.plexus.context.Context context)
           
 void enableLogging(org.codehaus.plexus.logging.Logger logger)
           
 java.util.LinkedHashSet getArtifactRepositoriesFromActiveProfiles(Model model, java.io.File pomFile, boolean useProfilesXml, ProfileActivationContext activationContext)
           
 java.util.LinkedHashSet getArtifactRepositoriesFromActiveProfiles(Model model, java.io.File pomFile, ProfileManager profileManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROLE_HINT

public static final java.lang.String ROLE_HINT
See Also:
Constant Field Values
Constructor Detail

DefaultProfileAdvisor

public DefaultProfileAdvisor()
Method Detail

applyActivatedProfiles

public java.util.List applyActivatedProfiles(Model model,
                                             java.io.File pomFile,
                                             boolean useProfilesXml,
                                             ProfileActivationContext activationContext)
                                      throws ProjectBuildingException
Specified by:
applyActivatedProfiles in interface ProfileAdvisor
Throws:
ProjectBuildingException

applyActivatedExternalProfiles

public java.util.List applyActivatedExternalProfiles(Model model,
                                                     java.io.File projectDir,
                                                     ProfileManager externalProfileManager)
                                              throws ProjectBuildingException
Specified by:
applyActivatedExternalProfiles in interface ProfileAdvisor
Throws:
ProjectBuildingException

getArtifactRepositoriesFromActiveProfiles

public java.util.LinkedHashSet getArtifactRepositoriesFromActiveProfiles(Model model,
                                                                         java.io.File pomFile,
                                                                         ProfileManager profileManager)
                                                                  throws ProjectBuildingException
Specified by:
getArtifactRepositoriesFromActiveProfiles in interface ProfileAdvisor
Throws:
ProjectBuildingException

getArtifactRepositoriesFromActiveProfiles

public java.util.LinkedHashSet getArtifactRepositoriesFromActiveProfiles(Model model,
                                                                         java.io.File pomFile,
                                                                         boolean useProfilesXml,
                                                                         ProfileActivationContext activationContext)
                                                                  throws ProjectBuildingException
Specified by:
getArtifactRepositoriesFromActiveProfiles in interface ProfileAdvisor
Throws:
ProjectBuildingException

contextualize

public void contextualize(org.codehaus.plexus.context.Context context)
                   throws org.codehaus.plexus.context.ContextException
Specified by:
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Throws:
org.codehaus.plexus.context.ContextException

enableLogging

public void enableLogging(org.codehaus.plexus.logging.Logger logger)
Specified by:
enableLogging in interface org.codehaus.plexus.logging.LogEnabled


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