Package org.picocontainer.behaviors
Class Intercepted<T>
- java.lang.Object
-
- org.picocontainer.behaviors.AbstractBehavior<T>
-
- org.picocontainer.behaviors.HiddenImplementation
-
- org.picocontainer.behaviors.Intercepted<T>
-
- All Implemented Interfaces:
java.io.Serializable
,Behavior
,ComponentAdapter
,ComponentLifecycle
,ComponentMonitorStrategy
,LifecycleStrategy
public class Intercepted<T> extends HiddenImplementation
- Author:
- Paul Hammant
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Intercepted.Controller
static class
Intercepted.ControllerImpl
class
Intercepted.ControllerWrapper
static class
Intercepted.InterceptorThreadLocal
-
Nested classes/interfaces inherited from interface org.picocontainer.ComponentAdapter
ComponentAdapter.NOTHING
-
-
Field Summary
-
Fields inherited from class org.picocontainer.behaviors.AbstractBehavior
delegate
-
-
Constructor Summary
Constructors Constructor Description Intercepted(ComponentAdapter delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPostInvocation(java.lang.Class type, java.lang.Object interceptor)
void
addPreInvocation(java.lang.Class type, java.lang.Object interceptor)
Intercepted.Controller
getController()
java.lang.String
getDescriptor()
Get a string key descriptor of the component adapter for use in toString()protected java.lang.Object
invokeMethod(java.lang.Object componentInstance, java.lang.reflect.Method method, java.lang.Object[] args, PicoContainer container)
-
Methods inherited from class org.picocontainer.behaviors.HiddenImplementation
createProxy, getComponentInstance
-
Methods inherited from class org.picocontainer.behaviors.AbstractBehavior
accept, changeMonitor, componentHasLifecycle, currentMonitor, dispose, dispose, findAdapterOfType, getComponentImplementation, getComponentInstance, getComponentKey, getDelegate, hasLifecycle, isLazy, isStarted, start, start, stop, stop, toString, verify
-
-
-
-
Constructor Detail
-
Intercepted
public Intercepted(ComponentAdapter delegate)
-
-
Method Detail
-
addPreInvocation
public void addPreInvocation(java.lang.Class type, java.lang.Object interceptor)
-
addPostInvocation
public void addPostInvocation(java.lang.Class type, java.lang.Object interceptor)
-
invokeMethod
protected java.lang.Object invokeMethod(java.lang.Object componentInstance, java.lang.reflect.Method method, java.lang.Object[] args, PicoContainer container) throws java.lang.Throwable
- Overrides:
invokeMethod
in classHiddenImplementation
- Throws:
java.lang.Throwable
-
getController
public Intercepted.Controller getController()
-
getDescriptor
public java.lang.String getDescriptor()
Description copied from interface:ComponentAdapter
Get a string key descriptor of the component adapter for use in toString()- Specified by:
getDescriptor
in interfaceComponentAdapter<T>
- Overrides:
getDescriptor
in classHiddenImplementation
- Returns:
- the descriptor
-
-