org.mortbay.jetty.plus.naming
public class NamingEntryUtil extends Object
Constructor and Description |
---|
NamingEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
bindToENC(Object scope,
String asName,
String mappedName)
Link a name in a webapp's java:/comp/evn namespace to a pre-existing
resource.
|
static Context |
getContextForNamingEntries(Object scope) |
static Context |
getContextForScope(Object scope) |
static Name |
getNameForScope(Object scope) |
static List |
lookupNamingEntries(Object scope,
Class clazz)
Get all NameEntries of a certain type in the given naming
environment scope (server-wide names or context-specific names)
|
static NamingEntry |
lookupNamingEntry(Object scope,
String jndiName)
Find a NamingEntry instance.
|
static Name |
makeNamingEntryName(NameParser parser,
NamingEntry namingEntry) |
static Name |
makeNamingEntryName(NameParser parser,
String jndiName) |
public static boolean bindToENC(Object scope, String asName, String mappedName) throws NamingException
asName
- the name to bind asmappedName
- the name from the environment to link to asNamenamingEntryType
- NamingException
public static NamingEntry lookupNamingEntry(Object scope, String jndiName) throws NamingException
jndiName
- name to lookupNamingException
public static List lookupNamingEntries(Object scope, Class clazz) throws NamingException
scope
- clazz
- the type of the entryNamingException
public static Name makeNamingEntryName(NameParser parser, NamingEntry namingEntry) throws NamingException
NamingException
public static Name makeNamingEntryName(NameParser parser, String jndiName) throws NamingException
NamingException
public static Context getContextForScope(Object scope) throws NamingException
NamingException
public static Context getContextForNamingEntries(Object scope) throws NamingException
NamingException
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.