ResourceLinkRefpublic class ResourceLinkRef extends Reference Represents a reference address to a resource. |
Fields Summary |
---|
public static final String | DEFAULT_FACTORYDefault factory for this reference. | public static final String | GLOBALNAMEDescription address type. |
Constructors Summary |
---|
public ResourceLinkRef(String resourceClass, String globalName)ResourceLink Reference.
// ----------------------------------------------------------- Constructors
this(resourceClass, globalName, null, null);
| public ResourceLinkRef(String resourceClass, String globalName, String factory, String factoryLocation)ResourceLink Reference.
super(resourceClass, factory, factoryLocation);
StringRefAddr refAddr = null;
if (globalName != null) {
refAddr = new StringRefAddr(GLOBALNAME, globalName);
add(refAddr);
}
|
Methods Summary |
---|
public java.lang.String | getFactoryClassName()Retrieves the class name of the factory of the object to which this
reference refers.
String factory = super.getFactoryClassName();
if (factory != null) {
return factory;
} else {
factory = System.getProperty(Context.OBJECT_FACTORIES);
if (factory != null) {
return null;
} else {
return DEFAULT_FACTORY;
}
}
|
|