public interface InterceptorMBean extends ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getDependsOn()
The set of interceptor names this interceptor depends on.
|
java.lang.String[] |
getInterceptedOperationNames()
The name of the operation / method that needs to intercepted by this
interceptor's method.
|
java.lang.String |
getInterceptedTargetKey()
The key associated with the intercepted target.
|
java.lang.String |
getInterceptorTypeName()
The HK2 name of the interceptor class.
|
int |
getPriority()
The priority of this intercepted method in the interceptor chain.
|
java.util.Properties |
getProperties()
A set of <name, value> pairs that needs to be passed to the interceptor.
|
void |
setDependsOn(java.lang.String[] dependsOn)
Sets set of interceptor names this interceptor depends on.
|
void |
setInterceptedOperationNames(java.lang.String[] interceptedOperationNames)
Set the name of the operation / method that needs to intercepted by this
interceptor's method.
|
void |
setInterceptedTargetKey(java.lang.String interceptedTargetKey)
Set the key associated with the intercepted target.
|
void |
setInterceptorTypeName(java.lang.String name)
Set the HK2 name of the interceptor class.
|
void |
setPriority(int priority)
Sets the priority of this intercepted method in the interceptor chain.
|
void |
setProperties(java.util.Properties props)
Set a Properties object that needs to be passed to the interceptor.
|
addTag, freezeCurrentValue, getComments, getId, getInheritedProperties, getName, getNotes, getTags, isDefaultedMBean, isDynamicallyCreated, isInherited, isPersistenceEnabled, isSet, removeTag, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, setTags, touch, unSet
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
getAttribute, getAttributes, invoke, setAttribute, setAttributes
postDeregister, postRegister, preDeregister, preRegister
addNotificationListener, getNotificationInfo, removeNotificationListener
addBeanUpdateListener, addPropertyChangeListener, createChildCopy, createChildCopyIncludingObsolete, getDescriptor, getParentBean, isEditable, removeBeanUpdateListener, removePropertyChangeListener
java.lang.String getInterceptorTypeName()
The HK2 name of the interceptor class.
void setInterceptorTypeName(java.lang.String name)
Set the HK2 name of the interceptor class.
name
- The HK2 name of the interceptor class.java.lang.String getInterceptedTargetKey()
The key associated with the intercepted target. This is the value that would have been specified in the @InterceptedTargetKey annotation. If this is null then this Interceptor is ignored.
void setInterceptedTargetKey(java.lang.String interceptedTargetKey)
interceptedTargetKey
- The name of the InterceptedTarget.java.lang.String[] getInterceptedOperationNames()
The name of the operation / method that needs to intercepted by this interceptor's method. If the return value is null or "*" then all operations are intercepted by this interceptor.
void setInterceptedOperationNames(java.lang.String[] interceptedOperationNames)
int getPriority()
The priority of this intercepted method in the interceptor chain. An interceptor with a higher priority will be executed earlier than an interceptor with a lower priority.
Note: 1073741823 is actually Integer.MAX_VALUE / 2 as defined in InterceptorPriorities.
void setPriority(int priority)
Sets the priority of this intercepted method in the interceptor chain. An interceptor with a higher priority will be executed earlier than an interceptor with a lower priority.
priority
- the priority of this interceptor method in the chain.java.lang.String[] getDependsOn()
The set of interceptor names this interceptor depends on. The specified interceptors will appear before this interceptor in the invocation chain.
void setDependsOn(java.lang.String[] dependsOn)
Sets set of interceptor names this interceptor depends on. The specified interceptors will appear before this interceptor in the invocation chain.
dependsOn
- the set of interceptor names this interceptor depends on.java.util.Properties getProperties()
A set of <name, value> pairs that needs to be passed to the interceptor.
void setProperties(java.util.Properties props)
Set a Properties object that needs to be passed to the interceptor.
props
- the Properties object that will be passed to the interceptor