public String getValue() { return decoree.getValue(); }
/** ** Returns the typed value object of this environment property. Throws an IllegalArgumentException if bounds checking is ** true and the value cannot be ** reconciled with the given type. */ public Object getValueObject() { if (this.valueObject == null) { this.valueObject = ""; } return getObjectFromString(this.getValue(), this.getValueType()); }
/** * Returns a resolved value of this environment property */ public String getResolvedValue() { return RelativePathResolver.resolvePath(getValue()); }
/** * Return the rolename. * @return the role name. */ public SecurityRole getSecurityRoleLink() { return new SecurityRoleDescriptor(super.getValue(), ""); }
/** * Return the role object from this descriptor. * @return the role. */ public Role getRole() { return new Role(super.getValue()); }
/** * Return the role object from this descriptor. * @return the role. */ public Role getRole() { return new Role(super.getValue()); }
/** * Return the rolename. * @return the role name. */ public SecurityRole getSecurityRoleLink() { return new SecurityRoleDescriptor(super.getValue(), ""); }
/** * Returns a resolved value of this environment property */ public String getResolvedValue() { return RelativePathResolver.resolvePath(getValue()); }
void copy(Set s) { Iterator i = s.iterator(); defaults = new Properties(); while ( i.hasNext() ) { EnvironmentProperty p = (EnvironmentProperty)i.next(); if ( p.getName().startsWith(ejb10Prefix) ) { String newName = p.getName().substring(ejb10Prefix.length()); defaults.put(newName, p.getValue()); } } }
public String getRuntimeActivationConfigValue(String name) { for(Iterator iter = runtimeActivationConfig.getActivationConfig().iterator(); iter.hasNext();) { EnvironmentProperty next = (EnvironmentProperty) iter.next(); if( next.getName().equals(name) ) { return (String) next.getValue(); } } return null; }
void copy(Set s) { Iterator i = s.iterator(); defaults = new Properties(); while ( i.hasNext() ) { EnvironmentProperty p = (EnvironmentProperty)i.next(); if ( p.getName().startsWith(ejb10Prefix) ) { String newName = p.getName().substring(ejb10Prefix.length()); defaults.put(newName, p.getValue()); } } }
public void removeActivationConfigProperty(EnvironmentProperty prop) { for(Iterator iter = activationConfig.getActivationConfig().iterator(); iter.hasNext();) { EnvironmentProperty next = (EnvironmentProperty) iter.next(); if( next.getName().equals(prop.getName()) && next.getValue().equals(prop.getValue()) ) { iter.remove(); break; } } }
public void removeRuntimeActivationConfigProperty(EnvironmentProperty prop) { for(Iterator iter = runtimeActivationConfig.getActivationConfig().iterator(); iter.hasNext();) { EnvironmentProperty next = (EnvironmentProperty) iter.next(); if( next.getName().equals(prop.getName()) && next.getValue().equals(prop.getValue()) ) { iter.remove(); break; } } }
public String getActivationConfigValue(String name) { for(Iterator iter = activationConfig.getActivationConfig().iterator(); iter.hasNext();) { EnvironmentProperty next = (EnvironmentProperty) iter.next(); if( next.getName().equals(name) ) { return (String) next.getValue(); } } return null; }
/** ** Returns a String representation of this environment property. */ public void print(StringBuffer toStringBuffer) { toStringBuffer.append("Env-Prop: ").append(super.getName()).append("@"); printInjectableResourceInfo(toStringBuffer); toStringBuffer.append("@").append(this.getType()).append("@").append(this.getValue()).append("@").append("@").append(super.getDescription()); }
/** ** Returns a String representation of this environment property. */ public void print(StringBuffer toStringBuffer) { toStringBuffer.append("Env-Prop: ").append(super.getName()).append("@"); printInjectableResourceInfo(toStringBuffer); toStringBuffer.append("@").append(this.getType()).append("@").append(this.getValue()).append("@").append("@").append(super.getDescription()); }
public String getActivationConfigValue(String name) { for (EnvironmentProperty next : activationConfig.getActivationConfig()) { if (next.getName().equals(name)) { return next.getValue(); } } return null; }
/** * Construct the role reference with the same name and rolename the same * as the environment property value. * @param the environment property instance. */ public RoleReference(EnvironmentProperty environmentProperty) { super(environmentProperty.getName(), environmentProperty.getDescription(), ""); this.setValue(environmentProperty.getValue()); }