A B C D E F G H I M N O P R S T U W

A

addObserver(Observer) - Method in interface dynaop.observer.Subject
Adds an Observer.
addObserver(Observer) - Method in class dynaop.observer.SubjectMixin
 
ALL_CLASSES - Static variable in class dynaop.Pointcuts
Picks all classes.
ALL_METHODS - Static variable in class dynaop.Pointcuts
Picks all methods.
ArrayObject - Class in dynaop.util
Implements hashCode() and equals() functionality for an array.
ArrayObject(Object) - Constructor for class dynaop.util.ArrayObject
Constructs a object for a given array.
Aspects - Class in dynaop
Collection of aspects.
Aspects() - Constructor for class dynaop.Aspects
 

B

BshAspects - Class in dynaop.bsh
Executes BeanShell script on the classpath at "/dynaop.bsh".
BshAspects(URL) - Constructor for class dynaop.bsh.BshAspects
 
BshAspects() - Constructor for class dynaop.bsh.BshAspects
 
BshHelper - Class in dynaop.bsh
Convenience methods for BeanShell configuration script.

C

Cache - Class in dynaop.util
Cache with weak keys and soft values.
Cache(boolean) - Constructor for class dynaop.util.Cache
Creates cache.
Cache() - Constructor for class dynaop.util.Cache
Defaults to weak keys.
Classes - Class in dynaop.util
Class utilities.
className(String) - Static method in class dynaop.Pointcuts
Matches class names with a regular expression.
ClassPointcut - Interface in dynaop
Picks classes.
clone(Object) - Static method in class dynaop.util.ArrayObject
Creates a defensive copy of an array.
Closure - Interface in dynaop.util
Command that executes against a single argument.
commonLoader(Class[]) - Static method in class dynaop.util.Classes
Finds a ClassLoader for which all of the classes are visible.
commonLoader(Collection) - Static method in class dynaop.util.Classes
Finds a ClassLoader for which all of the classes are visible.
ConfigurationException - Exception in dynaop
Thrown in the event of a fatal proxy configuration error.
ConfigurationException(String) - Constructor for exception dynaop.ConfigurationException
 
create(Proxy) - Method in interface dynaop.InterceptorFactory
Creates interceptor for specified proxy.
create(Proxy) - Method in interface dynaop.MixinFactory
Creates mixin for specified proxy.
create(URL, Class) - Method in class dynaop.remote.Home
Creates stub that connects to Service mapped to specified URL and implements the specified client interface.
create(Object) - Method in class dynaop.util.Cache
Creates value for key.
createArgument(Subject, Invocation, Object) - Method in class dynaop.observer.SubjectInterceptor
Creates argument that should be passed to observers.

D

Debug - Class in dynaop
Tool for debugging proxy factory configurations.
Debug(PrintStream) - Constructor for class dynaop.Debug
 
Debug(OutputStream) - Constructor for class dynaop.Debug
 
Debug() - Constructor for class dynaop.Debug
Use System.out.
declaringClass(Object) - Method in class dynaop.bsh.BshHelper
 
declaringClass(ClassPointcut) - Static method in class dynaop.Pointcuts
Picks method if the given class pointcut picks the method's declaring class.
DispatchInterceptor - Class in dynaop
Dispatches to method in interceptor with the same signature as the intercepted method.
DispatchInterceptor() - Constructor for class dynaop.DispatchInterceptor
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class dynaop.remote.Service
 
dynaop - package dynaop
Provides for proxy creation.
dynaop.bsh - package dynaop.bsh
Proxy factory implementations.
dynaop.observer - package dynaop.observer
Observer pattern (Design Patterns, GoF).
dynaop.remote - package dynaop.remote
Stateless remote method invocation framework.
dynaop.util - package dynaop.util
Utility classes.

E

equals(Object) - Method in class dynaop.DispatchInterceptor
 
equals(Object) - Method in class dynaop.util.ArrayObject
 
EQUALS_METHOD - Static variable in class dynaop.util.Classes
 
execute(Object) - Method in interface dynaop.util.Closure
 
extend(Class) - Method in class dynaop.ProxyFactory
Creates class proxy for the given target class.

F

forName(String) - Static method in class dynaop.util.Classes
Same as Class.forName(), except that it works for primitive types.

G

get(Object) - Method in class dynaop.util.Cache
Gets value for key.
GET_METHODS - Static variable in class dynaop.Pointcuts
Picks getXxx() methods.
getAllInterfaces(Class) - Static method in class dynaop.util.Classes
Gets all interfaces implemented by a given type and its super types.
getAllInterfacesAsList(Class) - Static method in class dynaop.util.Classes
Gets all interfaces implemented by a given type and its super types.
getArguments() - Method in interface dynaop.Invocation
Gets invocation arguments.
getClassLoader(Class) - Static method in class dynaop.util.Classes
Gets the class's loader.
getClassLoader() - Static method in class dynaop.util.Classes
Gets the context class loader or the system class loader if the context if null.
getHandle() - Method in interface dynaop.ProxyContext
Gets serializable proxy reference.
getInstance() - Static method in class dynaop.Aspects
Gets default instance. Defaults to BshAspects.
getInstance(Aspects) - Static method in class dynaop.ProxyFactory
Creates proxy factory instance configured using given aspects.
getInstance() - Static method in class dynaop.ProxyFactory
Gets default proxy factory instance. Uses default Aspects instance.
getInterceptorFactories(Method) - Method in interface dynaop.ProxyType
Gets interceptor factory chain for a method.
getInterceptors(Method) - Method in interface dynaop.ProxyContext
Gets interceptors assigned to method.
getInterfaces() - Method in interface dynaop.ProxyType
Gets interfaces the proxy implements.
getInvocation() - Method in class dynaop.DispatchInterceptor
Gets the invocation object.
getMessage() - Method in exception dynaop.util.NestedException
 
getMethod() - Method in interface dynaop.Invocation
Gets invoked method.
getMethod() - Method in class dynaop.util.MethodHandle
 
getNested() - Method in exception dynaop.util.NestedException
 
getProperties() - Method in interface dynaop.InterceptorFactory
Gets properties.
getProperties() - Method in interface dynaop.MixinFactory
Gets properties.
getProxy() - Method in interface dynaop.Handle
Gets referenced proxy.
getProxy() - Method in interface dynaop.Invocation
Gets proxy.
getProxyContext() - Method in interface dynaop.Proxy
Gets proxy context.
getProxyType(Class) - Static method in class dynaop.Debug
Gets immutable proxy type for specified class from default Aspects.
getProxyType(Aspects, Class) - Static method in class dynaop.Debug
Gets immutable proxy type for specified Aspects and class.
getProxyType() - Method in interface dynaop.ProxyContext
Gets ProxyType for this proxy.

H

Handle - Interface in dynaop
Serializable reference to a proxy.
handleMethodKeys(Map) - Static method in class dynaop.util.MethodHandle
 
hashCode() - Method in class dynaop.DispatchInterceptor
 
hashCode() - Method in class dynaop.util.ArrayObject
 
HASHCODE_METHOD - Static variable in class dynaop.util.Classes
 
Home - Class in dynaop.remote
Creates client stubs.
Home() - Constructor for class dynaop.remote.Home
 

I

implementsInterfaces(Class, Class[]) - Static method in class dynaop.util.Classes
Returns true if clazz implements all of the interfaces.
init(ServletConfig) - Method in class dynaop.remote.Service
 
instancesOf(Class) - Static method in class dynaop.Pointcuts
Picks classes that are an instance of the parent class or interface.
intercept(Invocation) - Method in class dynaop.DispatchInterceptor
 
intercept(Invocation) - Method in interface dynaop.Interceptor
Intercepts a method invocation.
intercept(Invocation) - Method in class dynaop.observer.SubjectInterceptor
 
interceptor(ClassPointcut, MethodPointcut, Interceptor) - Method in class dynaop.Aspects
Adds method interceptor instance to methods picked by pointcuts.
interceptor(ClassPointcut, MethodPointcut, Class, Closure) - Method in class dynaop.Aspects
Adds method interceptor instance to methods picked by pointcuts.
interceptor(ClassPointcut, MethodPointcut, InterceptorFactory) - Method in class dynaop.Aspects
Adds custom interceptor factory to methods picked by pointcuts.
interceptor(Object, Object, Class, Closure) - Method in class dynaop.bsh.BshHelper
 
interceptor(Object, Object, Class) - Method in class dynaop.bsh.BshHelper
 
interceptor(Object, Object, Interceptor) - Method in class dynaop.bsh.BshHelper
 
interceptor(Object, Object, InterceptorFactory) - Method in class dynaop.bsh.BshHelper
 
Interceptor - Interface in dynaop
Method interception advice.
InterceptorFactory - Interface in dynaop
Manufactures interceptors.
interfaces(ClassPointcut, Class[]) - Method in class dynaop.Aspects
Adds interfaces to classes picked by pointcut.
interfaces(Object, Class[]) - Method in class dynaop.bsh.BshHelper
 
intersection(Object, Object) - Method in class dynaop.bsh.BshHelper
 
intersection(ClassPointcut, ClassPointcut) - Static method in class dynaop.Pointcuts
Intersection of two class pointcuts.
intersection(MethodPointcut, MethodPointcut) - Static method in class dynaop.Pointcuts
Intersection of two method pointcuts.
Invocation - Interface in dynaop
Intercepted method invocation.
invoke(Object, Method, Object[]) - Static method in class dynaop.util.Classes
Invokes method on target object with arguments.
IS_METHODS - Static variable in class dynaop.Pointcuts
Picks isXxx() methods.
isClassProxy() - Method in interface dynaop.ProxyContext
Is this a class proxy (as opposed to a dynamic proxy)?

M

main(String[]) - Static method in class dynaop.Debug
 
membersOf(Class) - Static method in class dynaop.Pointcuts
Picks methods that are members of the given class (whether or not the method's actual declaring class is an instance of the given class).
MethodHandle - Class in dynaop.util
Serializable method handle.
MethodHandle(Method) - Constructor for class dynaop.util.MethodHandle
 
methodPointcut(Class) - Static method in class dynaop.DispatchInterceptor
Creates a method pointcut for the given DispatchInterceptor class.
MethodPointcut - Interface in dynaop
Picks methods.
mixin(ClassPointcut, Class[], Class, Closure) - Method in class dynaop.Aspects
Adds mixin instance to classes picked by pointcut.
mixin(ClassPointcut, Class, Closure) - Method in class dynaop.Aspects
Convenience method.
mixin(ClassPointcut, Class[], MixinFactory) - Method in class dynaop.Aspects
Adds custom mixin factory to classes picked by pointcut.
mixin(Object, Class[], Class, Closure) - Method in class dynaop.bsh.BshHelper
 
mixin(Object, Class[], Class) - Method in class dynaop.bsh.BshHelper
 
mixin(Object, Class[], MixinFactory) - Method in class dynaop.bsh.BshHelper
 
mixin(Object, Class, Closure) - Method in class dynaop.bsh.BshHelper
 
mixin(Object, Class) - Method in class dynaop.bsh.BshHelper
 
MixinFactory - Interface in dynaop
Manufactures mixins.

N

NestedException - Exception in dynaop.util
Turns a nested exception into a runtime exception.
newInstance(Class) - Static method in class dynaop.util.Classes
Creates a new instance of clazz using default constructor and converting exceptions.
newInstance(Constructor, Object[]) - Static method in class dynaop.util.Classes
Creates a new instance of clazz converting exceptions.
not(ClassPointcut) - Static method in class dynaop.Pointcuts
Inverts pointcut.
not(MethodPointcut) - Static method in class dynaop.Pointcuts
Inverts pointcut.
notify(Subject, Object) - Method in interface dynaop.observer.Observer
Notifies of change in the Subject.
notifyObservers(Object) - Method in interface dynaop.observer.Subject
Notifies Observers of a change.
notifyObservers(Object) - Method in class dynaop.observer.SubjectMixin
 

O

OBJECT_METHODS - Static variable in class dynaop.Pointcuts
Picks equals(), hashCode(), and toString().
OBJECT_METHODS - Static variable in class dynaop.util.Classes
 
OBJECT_METHODS_SET - Static variable in class dynaop.util.Classes
 
Observer - Interface in dynaop.observer
Observes a Subject.

P

packageName(String) - Static method in class dynaop.Pointcuts
Picks all classes in package.
picks(Class) - Method in interface dynaop.ClassPointcut
Returns true if this pointcut picks the given class.
picks(Method) - Method in interface dynaop.MethodPointcut
Returns true if this pointcut picks the given method.
Pointcuts - Class in dynaop
Creates class and method pointcuts.
printStackTrace() - Method in exception dynaop.util.NestedException
 
printStackTrace(PrintStream) - Method in exception dynaop.util.NestedException
 
printStackTrace(PrintWriter) - Method in exception dynaop.util.NestedException
 
printXml(Class, ProxyType) - Method in class dynaop.Debug
Prints proxy type for class as XML.
proceed() - Method in class dynaop.DispatchInterceptor
Proceeds with invocation.
proceed() - Method in interface dynaop.Invocation
Invokes next interceptor, mixin, or proxy target.
Proxy - Interface in dynaop
Implemented by generated proxies.
ProxyAware - Interface in dynaop
Implemented by mixins or interceptors that need access to the surrounding proxy.
ProxyContext - Interface in dynaop
Proxy instance context.
ProxyFactory - Class in dynaop
Manufactures proxies.
ProxyType - Interface in dynaop
Proxy type.

R

removeObserver(Observer) - Method in interface dynaop.observer.Subject
Removes an Observer.
removeObserver(Observer) - Method in class dynaop.observer.SubjectMixin
 
returnType(Object) - Method in class dynaop.bsh.BshHelper
 
returnType(ClassPointcut) - Static method in class dynaop.Pointcuts
Picks method if the given class pointcut picks the method's return type.

S

Service - Class in dynaop.remote
Service servlet.
Service() - Constructor for class dynaop.remote.Service
 
SET_METHODS - Static variable in class dynaop.Pointcuts
Picks setXxx() methods.
setProxy(Proxy) - Method in class dynaop.observer.SubjectMixin
 
setProxy(Proxy) - Method in interface dynaop.ProxyAware
 
signature(String) - Static method in class dynaop.Pointcuts
Matches method signatures with a regular expression.
singleton(Class) - Static method in class dynaop.Pointcuts
Picks one class.
singleton(Method) - Static method in class dynaop.Pointcuts
Picks one method.
Subject - Interface in dynaop.observer
Subject of observation.
SubjectInterceptor - Class in dynaop.observer
Notifies observers after the method invocation completes.
SubjectInterceptor() - Constructor for class dynaop.observer.SubjectInterceptor
 
SubjectInterceptor(Object) - Constructor for class dynaop.observer.SubjectInterceptor
 
SubjectMixin - Class in dynaop.observer
Support class for subject mixins.
SubjectMixin() - Constructor for class dynaop.observer.SubjectMixin
 

T

toString() - Method in class dynaop.DispatchInterceptor
 
toString() - Method in class dynaop.util.ArrayObject
 
toString() - Method in exception dynaop.util.NestedException
 
TOSTRING_METHOD - Static variable in class dynaop.util.Classes
 

U

unhandleMethodKeys(Map) - Static method in class dynaop.util.MethodHandle
 
union(Object, Object) - Method in class dynaop.bsh.BshHelper
 
union(ClassPointcut, ClassPointcut) - Static method in class dynaop.Pointcuts
Union of two class pointcuts.
union(MethodPointcut, MethodPointcut) - Static method in class dynaop.Pointcuts
Union of two method pointcuts.
unwrap() - Method in interface dynaop.ProxyContext
Gets proxied object. Returns wrapped object for dynamic proxies, and creates new, non-proxied copy for class proxies.

W

wrap(Object) - Method in class dynaop.ProxyFactory
Creates dynamic proxy for the given target object.
wrap(Throwable) - Static method in exception dynaop.util.NestedException
Wrap another exeception in a RuntimeException.

A B C D E F G H I M N O P R S T U W