/** * set the properties for this instance as retrieved from JNDI * * @param props * The properties to apply to this instance. * * @return a new, unmodifiable, map containing any unused properties, or empty if none were. */ synchronized void setProperties(Properties props) { buildFromProperties(props); }
/** * Method for class's implementing externalizable to delegate to if not custom implementing. * * @param out * @throws IOException * @see java.io.Externalizable#writeExternal(java.io.ObjectOutput) */ public void writeObject(ObjectOutput out) throws IOException { out.writeObject(getProperties()); }
/** * Get the properties from this instance for storing in JNDI * * @return the properties */ synchronized Properties getProperties() { Properties properties = new Properties(); populateProperties(properties); return properties; }
/** * Method for class's implementing externalizable to delegate to if not custom implementing. * * @param in * @throws IOException * @throws ClassNotFoundException * @see java.io.Externalizable#readExternal(java.io.ObjectInput) */ public void readObject(ObjectInput in) throws IOException, ClassNotFoundException { Properties props = (Properties)in.readObject(); if (props != null) { setProperties(props); } }
if (JNDIStorable.class.isAssignableFrom(theClass)) { JNDIStorable store = (JNDIStorable) theClass.newInstance(); store.setProperties(getProperties(reference)); result = store;
/** * Create a Reference instance from a JNDIStorable object * * @param instanceClassName * The name of the class that is being created. * @param po * The properties object to use when configuring the new instance. * * @return Reference * * @throws NamingException if an error occurs while creating the new instance. */ public static Reference createReference(String instanceClassName, JNDIStorable po) throws NamingException { Reference result = new Reference(instanceClassName, JNDIReferenceFactory.class.getName(), null); try { Properties props = po.getProperties(); for (Enumeration iter = props.propertyNames(); iter.hasMoreElements();) { String key = (String)iter.nextElement(); result.add(new StringRefAddr(key, props.getProperty(key))); } } catch (Exception e) { throw new NamingException(e.getMessage()); } return result; }
/** * Method for class's implementing externalizable to delegate to if not custom implementing. * * @param in * @throws IOException * @throws ClassNotFoundException * @see java.io.Externalizable#readExternal(java.io.ObjectInput) */ public void readObject(ObjectInput in) throws IOException, ClassNotFoundException { Properties props = (Properties)in.readObject(); if (props != null) { setProperties(props); } }
/** * Get the properties from this instance for storing in JNDI * * @return the properties */ synchronized Properties getProperties() { Properties properties = new Properties(); populateProperties(properties); return properties; }
/** * set the properties for this instance as retrieved from JNDI * * @param props * The properties to apply to this instance. * * @return a new, unmodifiable, map containing any unused properties, or empty if none were. */ synchronized void setProperties(Properties props) { buildFromProperties(props); }
/** * Method for class's implementing externalizable to delegate to if not custom implementing. * * @param out * @throws IOException * @see java.io.Externalizable#writeExternal(java.io.ObjectOutput) */ public void writeObject(ObjectOutput out) throws IOException { out.writeObject(getProperties()); }
/** * Method for class's implementing externalizable to delegate to if not custom implementing. * * @param in * @throws IOException * @throws ClassNotFoundException * @see java.io.Externalizable#readExternal(java.io.ObjectInput) */ public void readObject(ObjectInput in) throws IOException, ClassNotFoundException { Properties props = (Properties)in.readObject(); if (props != null) { setProperties(props); } }
/** * Get the properties from this instance for storing in JNDI * * @return the properties */ synchronized Properties getProperties() { Properties properties = new Properties(); populateProperties(properties); return properties; }
/** * set the properties for this instance as retrieved from JNDI * * @param props * The properties to apply to this instance. * * @return a new, unmodifiable, map containing any unused properties, or empty if none were. */ synchronized void setProperties(Properties props) { buildFromProperties(props); }
/** * Method for class's implementing externalizable to delegate to if not custom implementing. * * @param out * @throws IOException * @see java.io.Externalizable#writeExternal(java.io.ObjectOutput) */ public void writeObject(ObjectOutput out) throws IOException { out.writeObject(getProperties()); }
/** * Method for class's implementing externalizable to delegate to if not custom implementing. * * @param in * @throws IOException * @throws ClassNotFoundException * @see java.io.Externalizable#readExternal(java.io.ObjectInput) */ public void readObject(ObjectInput in) throws IOException, ClassNotFoundException { Properties props = (Properties)in.readObject(); if (props != null) { setProperties(props); } }
/** * Get the properties from this instance for storing in JNDI * * @return the properties */ synchronized Properties getProperties() { Properties properties = new Properties(); populateProperties(properties); return properties; }
/** * set the properties for this instance as retrieved from JNDI * * @param props * The properties to apply to this instance. * * @return a new, unmodifiable, map containing any unused properties, or empty if none were. */ synchronized void setProperties(Properties props) { buildFromProperties(props); }
/** * Method for class's implementing externalizable to delegate to if not custom implementing. * * @param out * @throws IOException * @see java.io.Externalizable#writeExternal(java.io.ObjectOutput) */ public void writeObject(ObjectOutput out) throws IOException { out.writeObject(getProperties()); }
/** * Method for class's implementing externalizable to delegate to if not custom implementing. * * @param in * @throws IOException * @throws ClassNotFoundException * @see java.io.Externalizable#readExternal(java.io.ObjectInput) */ public void readObject(ObjectInput in) throws IOException, ClassNotFoundException { Properties props = (Properties)in.readObject(); if (props != null) { setProperties(props); } }
/** * Get the properties from this instance for storing in JNDI * * @return the properties */ synchronized Properties getProperties() { Properties properties = new Properties(); populateProperties(properties); return properties; }