public abstract class HardWiredInterceptor extends java.lang.Object implements MethodInterceptor
Constructor and Description |
---|
HardWiredInterceptor() |
Modifier and Type | Method and Description |
---|---|
static void |
configure(java.util.List<HardWiredInterceptor> hwi,
OmeroContext ctx) |
java.lang.String |
getName()
Can be implemented by all subclasses, so that they can configure themselves
in
selfConfigure(OmeroContext) . |
protected Principal |
getPrincipal(MethodInvocation mi) |
protected ServiceFactory |
getServiceFactory(MethodInvocation mi) |
protected boolean |
hasPassword(MethodInvocation mi) |
static void |
initializeUserAttributes(MethodInvocation mi,
ServiceFactory sf,
Principal pr,
java.util.concurrent.atomic.AtomicBoolean reusedSession)
Adds the given environment context objects to the
ReflectiveMethodInvocation.getUserAttributes()
Map for lookup in subclasses |
static java.util.List<HardWiredInterceptor> |
parse(java.lang.String[] classNames)
Produces a
List of instantiated interceptors from
a list of HardWiredInterceptor subclass names. |
void |
selfConfigure(OmeroContext context)
Calls
OmeroContext.applyBeanPropertyValues(Object, String) to
have properties injected. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invoke
public static void configure(java.util.List<HardWiredInterceptor> hwi, OmeroContext ctx)
public java.lang.String getName()
selfConfigure(OmeroContext)
. If the method returns null,
selfConfigure(OmeroContext)
will not run.public void selfConfigure(OmeroContext context)
OmeroContext.applyBeanPropertyValues(Object, String)
to
have properties injected.public static java.util.List<HardWiredInterceptor> parse(java.lang.String[] classNames)
List
of instantiated interceptors from
a list of HardWiredInterceptor
subclass names.public static void initializeUserAttributes(MethodInvocation mi, ServiceFactory sf, Principal pr, java.util.concurrent.atomic.AtomicBoolean reusedSession)
ReflectiveMethodInvocation.getUserAttributes()
Map
for lookup in subclassesprotected ServiceFactory getServiceFactory(MethodInvocation mi)
protected Principal getPrincipal(MethodInvocation mi)
protected boolean hasPassword(MethodInvocation mi)
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.