01: // ========================================================================
02: // $Id: Resource.java 887 2006-09-05 13:46:42Z janb $
03: // Copyright 2006 Mort Bay Consulting Pty. Ltd.
04: // ------------------------------------------------------------------------
05: // Licensed under the Apache License, Version 2.0 (the "License");
06: // you may not use this file except in compliance with the License.
07: // You may obtain a copy of the License at
08: // http://www.apache.org/licenses/LICENSE-2.0
09: // Unless required by applicable law or agreed to in writing, software
10: // distributed under the License is distributed on an "AS IS" BASIS,
11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: // See the License for the specific language governing permissions and
13: // limitations under the License.
14: // ========================================================================
15:
16: package org.mortbay.jetty.plus.naming;
17:
18: import javax.naming.Context;
19: import javax.naming.InitialContext;
20: import javax.naming.NameNotFoundException;
21: import javax.naming.NamingException;
22:
23: import org.mortbay.log.Log;
24:
25: /**
26: * Resource
27: *
28: *
29: */
30: public class Resource extends NamingEntry {
31:
32: public static Resource getResource(int scopeType, String jndiName)
33: throws NamingException {
34: return (Resource) lookupNamingEntry(scopeType, Resource.class,
35: jndiName);
36: }
37:
38: /**
39: * @param jndiName
40: * @param objToBind
41: */
42: public Resource(String jndiName, Object objToBind)
43: throws NamingException {
44: super(jndiName, objToBind);
45: }
46:
47: }
|