public class AdviceMethodFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static AdviceMethodFactory |
AFTER
Factory that selects advice methods for after interception.
|
static AdviceMethodFactory |
AROUND
Factory that selects advice methods for aroung interception.
|
static AdviceMethodFactory |
BEFORE
Factory that selects advice methods for before interception.
|
static AdviceMethodFactory |
FINALLY
Factory that selects advice methods for finally interception.
|
static AdviceMethodFactory |
THROWING
Factory that selects advice methods for throwing interception.
|
| Modifier and Type | Method and Description |
|---|---|
AdviceMethodProperties |
findAdviceMethod(AdviceMethodProperties properties)
Finds the more appropriate advice method.
|
void |
setAdviceType(AdviceType adviceType)
Sets the type of advice this factory represents.
|
public static final AdviceMethodFactory BEFORE
public static final AdviceMethodFactory AFTER
public static final AdviceMethodFactory THROWING
public static final AdviceMethodFactory FINALLY
public static final AdviceMethodFactory AROUND
public void setAdviceType(AdviceType adviceType)
adviceType - the type of the advice this factory is associated topublic final AdviceMethodProperties findAdviceMethod(AdviceMethodProperties properties) throws NoMatchingAdviceException
properties - contains information regarding the queried advice methodNoMatchingAdviceException - if no suitable method was found.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.