public class ArtifactInterceptionContext extends Object implements InterceptionContext
ArtifactEvent
Constructor and Description |
---|
ArtifactInterceptionContext(LifecycleEventType lifecycleEventType,
String artifactId,
ArtifactType... artifactTypes)
Constructs an artifact interception context with the given parameters
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(InterceptionContext context)
Checks whether this context matches the passed context criteria, analogous to the String's matches method
String.matches(String) method, the object on which the operation is called is treated as the concrete
object and the passed in argument is treated as the criteria |
String |
toString() |
public ArtifactInterceptionContext(LifecycleEventType lifecycleEventType, String artifactId, ArtifactType... artifactTypes)
lifecycleEventType
- the interception lifecycle event typeartifactId
- the artifact identifier or a regex matching the artifact identifierartifactTypes
- the type/s of the artifactpublic boolean matches(InterceptionContext context)
String.matches(String)
method, the object on which the operation is called is treated as the concrete
object and the passed in argument is treated as the criteriamatches
in interface InterceptionContext
context
- the context criteria to be matchedCopyright © 2010–2016 AdroitLogic. All rights reserved.