public abstract class HardWiredInterceptor extends Object implements MethodInterceptor
Constructor and Description |
---|
HardWiredInterceptor() |
Modifier and Type | Method and Description |
---|---|
static void |
configure(List<HardWiredInterceptor> hwi,
OmeroContext ctx) |
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,
AtomicBoolean reusedSession)
Adds the given environment context objects to the
ReflectiveMethodInvocation.getUserAttributes()
Map for lookup in subclasses |
static List<HardWiredInterceptor> |
parse(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(List<HardWiredInterceptor> hwi, OmeroContext ctx)
public 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 List<HardWiredInterceptor> parse(String[] classNames)
List
of instantiated interceptors from
a list of HardWiredInterceptor
subclass names.public static void initializeUserAttributes(MethodInvocation mi, ServiceFactory sf, Principal pr, 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.2.4-ice35-b23
Copyright © 2016 The University of Dundee & Open Microscopy Environment. All Rights Reserved.