|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.logic.HardWiredInterceptor
public abstract class HardWiredInterceptor
Extension point for interceptors which should be compiled in from third-party code. Subclasses can be added to the build system via the omero.hard-wired.interceptors property value. All subclasses must have a no-arg constructor, but can assess various environment variables via the getters defined on this class.
Constructor Summary | |
---|---|
HardWiredInterceptor()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.aopalliance.intercept.MethodInterceptor |
---|
invoke |
Constructor Detail |
---|
public HardWiredInterceptor()
Method Detail |
---|
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 subclasses
protected ServiceFactory getServiceFactory(MethodInvocation mi)
protected Principal getPrincipal(MethodInvocation mi)
protected boolean hasPassword(MethodInvocation mi)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.4-dbcbce5a-b4
Copyright © 2009 The University of Dundee. All Rights Reserved.