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:
- Serializable, Behavior, ComponentAdapter, ComponentLifecycle, ComponentMonitorStrategy, LifecycleStrategy
public class Intercepted<T>
- extends HiddenImplementation
- Author:
- Paul Hammant
- See Also:
- Serialized Form
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 |
Intercepted
public Intercepted(ComponentAdapter delegate)
addPreInvocation
public void addPreInvocation(Class type,
Object interceptor)
addPostInvocation
public void addPostInvocation(Class type,
Object interceptor)
invokeMethod
protected Object invokeMethod(Object componentInstance,
Method method,
Object[] args,
PicoContainer container)
throws Throwable
- Overrides:
invokeMethod
in class HiddenImplementation
- Throws:
Throwable
getController
public Intercepted.Controller getController()
getDescriptor
public String getDescriptor()
- Description copied from interface:
ComponentAdapter
- Get a string key descriptor of the component adapter for use in toString()
- Specified by:
getDescriptor
in interface ComponentAdapter
- Overrides:
getDescriptor
in class HiddenImplementation
- Returns:
- the descriptor
Copyright © 2003-2010 Codehaus. All Rights Reserved.