01: /*
02: * Copyright 1999,2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.apache.naming;
18:
19: import javax.naming.NameParser;
20: import javax.naming.Name;
21: import javax.naming.NamingException;
22: import javax.naming.CompositeName;
23:
24: /**
25: * Parses names.
26: *
27: * @author Remy Maucherat
28: * @version $Revision: 1.2 $ $Date: 2004/02/27 14:58:53 $
29: */
30:
31: public class NameParserImpl implements NameParser {
32:
33: // ----------------------------------------------------- Instance Variables
34:
35: // ----------------------------------------------------- NameParser Methods
36:
37: /**
38: * Parses a name into its components.
39: *
40: * @param name The non-null string name to parse
41: * @return A non-null parsed form of the name using the naming convention
42: * of this parser.
43: */
44: public Name parse(String name) throws NamingException {
45: return new CompositeName(name);
46: }
47:
48: }
|