missing class
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/39757e4f Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/39757e4f Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/39757e4f Branch: refs/heads/master Commit: 39757e4f9c8edeb1b277a57b3035cf7f565dccd9 Parents: d464d6b Author: Romain Manni-Bucau <rmannibu...@apache.org> Authored: Thu Mar 5 00:29:18 2015 +0100 Committer: Romain Manni-Bucau <rmannibu...@apache.org> Committed: Thu Mar 5 00:29:18 2015 +0100 ---------------------------------------------------------------------- .../org/apache/openejb/ModuleTestContext.java | 40 ++++++++++++++++++++ 1 file changed, 40 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/39757e4f/container/openejb-core/src/main/java/org/apache/openejb/ModuleTestContext.java ---------------------------------------------------------------------- diff --git a/container/openejb-core/src/main/java/org/apache/openejb/ModuleTestContext.java b/container/openejb-core/src/main/java/org/apache/openejb/ModuleTestContext.java new file mode 100644 index 0000000..7f9f2e3 --- /dev/null +++ b/container/openejb-core/src/main/java/org/apache/openejb/ModuleTestContext.java @@ -0,0 +1,40 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.openejb; + +import java.net.URI; +import javax.naming.Context; + +/** + * @version $Rev$ $Date$ + */ +public class ModuleTestContext extends ModuleContext { + private Context moduleJndiContextOverride; + + public ModuleTestContext(final String id, final URI moduleURI, final String uniqueId, final AppContext appContext, final Context moduleJndiContext, final ClassLoader classLoader) { + super(id, moduleURI, uniqueId, appContext, moduleJndiContext, classLoader); + } + + public void setModuleJndiContextOverride(final Context moduleJndiContextOverride) { + this.moduleJndiContextOverride = moduleJndiContextOverride; + } + + public Context getModuleJndiContext() { + return moduleJndiContextOverride == null ? super.getModuleJndiContext() : moduleJndiContextOverride; + } +}