/** * Create a new JNDI name by appending a new local entry name to this name. * * @param local The new local part to append * @return A new JNDI name */ public JndiName append(final String local) { return new JndiName(this, local); }
/** * Create a new instance of the JndiName by breaking the provided string format into a JndiName parts. * * @param name The string representation of a JNDI name. * @return The JndiName representation */ public static JndiName of(final String name) { if(name == null || name.isEmpty()) throw NamingLogger.ROOT_LOGGER.invalidJndiName(name); final String[] parts = name.split(ENTRY_SEPARATOR); JndiName current = null; for(String part : parts) { current = new JndiName(current, part); } return current; }
/** * Create a new JNDI name by appending a new local entry name to this name. * * @param local The new local part to append * @return A new JNDI name */ public JndiName append(final String local) { return new JndiName(this, local); }
/** * Create a new JNDI name by appending a new local entry name to this name. * * @param local The new local part to append * @return A new JNDI name */ public JndiName append(final String local) { return new JndiName(this, local); }
/** * Create a new JNDI name by appending a new local entry name to this name. * * @param local The new local part to append * @return A new JNDI name */ public JndiName append(final String local) { return new JndiName(this, local); }
/** * Create a new instance of the JndiName by breaking the provided string format into a JndiName parts. * * @param name The string representation of a JNDI name. * @return The JndiName representation */ public static JndiName of(final String name) { if(name == null || name.isEmpty()) throw NamingLogger.ROOT_LOGGER.invalidJndiName(name); final String[] parts = name.split(ENTRY_SEPARATOR); JndiName current = null; for(String part : parts) { current = new JndiName(current, part); } return current; }
/** * Create a new instance of the JndiName by breaking the provided string format into a JndiName parts. * * @param name The string representation of a JNDI name. * @return The JndiName representation */ public static JndiName of(final String name) { if(name == null || name.isEmpty()) throw NamingLogger.ROOT_LOGGER.invalidJndiName(name); final String[] parts = name.split(ENTRY_SEPARATOR); JndiName current = null; for(String part : parts) { current = new JndiName(current, part); } return current; }
/** * Create a new instance of the JndiName by breaking the provided string format into a JndiName parts. * * @param name The string representation of a JNDI name. * @return The JndiName representation */ public static JndiName of(final String name) { if(name == null || name.isEmpty()) throw MESSAGES.invalidJndiName(name); final String[] parts = name.split(ENTRY_SEPARATOR); JndiName current = null; for(String part : parts) { current = new JndiName(current, part); } return current; }