org.apache.maven.profiles.activation
Class JdkPrefixProfileActivator

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

@Component(role=ProfileActivator.class,
           hint="jdk-prefix")
public class JdkPrefixProfileActivator
extends DetectedProfileActivator


Field Summary
static java.lang.String JDK_VERSION
           
 
Fields inherited from interface org.apache.maven.profiles.activation.ProfileActivator
ROLE
 
Constructor Summary
JdkPrefixProfileActivator()
           
 
Method Summary
protected  boolean canDetectActivation(Profile profile, ProfileActivationContext context)
           
 boolean isActive(Profile profile, ProfileActivationContext context)
           
 boolean isActive(java.lang.String jdkVersion, java.lang.String expression)
           
 
Methods inherited from class org.apache.maven.profiles.activation.DetectedProfileActivator
canDetermineActivation, enableLogging, getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JDK_VERSION

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

JdkPrefixProfileActivator

public JdkPrefixProfileActivator()
Method Detail

isActive

public boolean isActive(Profile profile,
                        ProfileActivationContext context)

isActive

public boolean isActive(java.lang.String jdkVersion,
                        java.lang.String expression)

canDetectActivation

protected boolean canDetectActivation(Profile profile,
                                      ProfileActivationContext context)
Specified by:
canDetectActivation in class DetectedProfileActivator


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