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
LibrarySpecification if parsed. |
void |
setClassName(java.lang.String className) |
void |
setImmediate(boolean immediate) |
java.lang.String |
toString() |
getLocation, setLocation
getProperty, getPropertyNames, removeProperty, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProperty, getPropertyNames, removeProperty, setProperty
protected java.util.Map _configuration
public ExtensionSpecification(org.apache.hivemind.ClassResolver resolver, ValueConverter valueConverter)
public java.lang.String getClassName()
getClassName
in interface IExtensionSpecification
public void setClassName(java.lang.String className)
setClassName
in interface IExtensionSpecification
public void addConfiguration(java.lang.String propertyName, java.lang.String value)
addConfiguration
in interface IExtensionSpecification
public java.util.Map getConfiguration()
getConfiguration
in interface IExtensionSpecification
public java.lang.Object instantiateExtension()
instantiateExtension
in interface IExtensionSpecification
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isImmediate()
LibrarySpecification
if parsed. Non-immediate extensions are
instantiated only as needed.isImmediate
in interface IExtensionSpecification
public void setImmediate(boolean immediate)
setImmediate
in interface IExtensionSpecification