org.apache.maven.profiles.activation
Class CustomActivator

java.lang.Object
  extended by org.apache.maven.profiles.activation.CustomActivator
All Implemented Interfaces:
ProfileActivator, org.codehaus.plexus.logging.LogEnabled

@Component(role=ProfileActivator.class,
           hint="custom")
public class CustomActivator
extends java.lang.Object
implements ProfileActivator, org.codehaus.plexus.logging.LogEnabled

Profile activator that allows the use of custom third-party activators, by specifying a type - or role-hint - for the activator, along with a configuration (in the form of a DOM) to be used in configuring the activator. This activator will lookup/configure custom activators on-the-fly, without caching any of the lookups from the container.


Field Summary
 
Fields inherited from interface org.apache.maven.profiles.activation.ProfileActivator
ROLE
 
Constructor Summary
CustomActivator()
           
 
Method Summary
 boolean canDetermineActivation(Profile profile, ProfileActivationContext context)
           
 void enableLogging(org.codehaus.plexus.logging.Logger logger)
           
protected  org.codehaus.plexus.logging.Logger getLogger()
           
 boolean isActive(Profile profile, ProfileActivationContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomActivator

public CustomActivator()
Method Detail

canDetermineActivation

public boolean canDetermineActivation(Profile profile,
                                      ProfileActivationContext context)
                               throws ProfileActivationException
Specified by:
canDetermineActivation in interface ProfileActivator
Throws:
ProfileActivationException

isActive

public boolean isActive(Profile profile,
                        ProfileActivationContext context)
                 throws ProfileActivationException
Specified by:
isActive in interface ProfileActivator
Throws:
ProfileActivationException

getLogger

protected org.codehaus.plexus.logging.Logger getLogger()

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.