public class ExtensionSpecification extends LocatablePropertyHolder implements IExtensionSpecification
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map |
_configuration |
| Constructor and Description |
|---|
ExtensionSpecification(org.apache.hivemind.ClassResolver resolver,
ValueConverter valueConverter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguration(java.lang.String propertyName,
java.lang.String value) |
java.lang.String |
getClassName() |
java.util.Map |
getConfiguration()
Returns an immutable Map of the configuration; keyed on property name, with values as
properties to assign.
|
java.lang.Object |
instantiateExtension()
Invoked to instantiate an instance of the extension and return it.
|
boolean |
isImmediate()
Returns true if the extensions should be instantiated immediately after the containing
LibrarySpecificationif parsed. |
void |
setClassName(java.lang.String className) |
void |
setImmediate(boolean immediate) |
java.lang.String |
toString() |
getLocation, setLocationgetProperty, getPropertyNames, removeProperty, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProperty, getPropertyNames, removeProperty, setPropertyprotected java.util.Map _configuration
public ExtensionSpecification(org.apache.hivemind.ClassResolver resolver, ValueConverter valueConverter)
public java.lang.String getClassName()
getClassName in interface IExtensionSpecificationpublic void setClassName(java.lang.String className)
setClassName in interface IExtensionSpecificationpublic void addConfiguration(java.lang.String propertyName, java.lang.String value)
addConfiguration in interface IExtensionSpecificationpublic java.util.Map getConfiguration()
getConfiguration in interface IExtensionSpecificationpublic java.lang.Object instantiateExtension()
instantiateExtension in interface IExtensionSpecificationpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isImmediate()
LibrarySpecificationif parsed. Non-immediate extensions are
instantiated only as needed.isImmediate in interface IExtensionSpecificationpublic void setImmediate(boolean immediate)
setImmediate in interface IExtensionSpecification