151152153154155156157158
e.addContextName(name); throw e; } } else { PojoObjectFactory objectFactory = new PojoObjectFactory(ctr, null, setters); return new SystemAtomicContext(name, objectFactory, eagerInit, init, destroy, stateless); } }
52535455565758
this.name = name; objectFactory = new SingletonObjectFactory<Object>(instance); } public Context createContext() throws ContextCreationException { return new SystemAtomicContext(name, objectFactory, false, null, null, false); }