01: package com.opensymphony.webwork.plexus;
02:
03: import org.codehaus.plexus.PlexusContainer;
04:
05: /**
06: * @author Patrick Lightbody (plightbo at gmail dot com)
07: */
08: public class PlexusThreadLocal {
09: static ThreadLocal ptl = new ThreadLocal();
10:
11: public static void setPlexusContainer(PlexusContainer pc) {
12: ptl.set(pc);
13: }
14:
15: public static PlexusContainer getPlexusContainer() {
16: return (PlexusContainer) ptl.get();
17: }
18: }
|