|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.configurable.XMLObjectConfigurationFactory
public class XMLObjectConfigurationFactory
This class retrieves an Object Configuration with a particular id.
The Object Configuration must be unique as a user will set their own parameters on the object during its lifetime.
Constructor Summary | |
---|---|
XMLObjectConfigurationFactory()
Creates a new XMLObjectConfigurationFactory object. |
Method Summary | |
---|---|
ObjectConfiguration |
getObjectConfiguration(String id,
Map params)
This function retrieves an ObjectConfiguration based on a specified identifier, N.B. |
boolean |
hasObjectConfiguration(String id)
Does this factory know about an ObjectConfiguration with the specified id |
void |
loadObjectConfiguration(String xmlFile,
String id)
This procedure loads an xml file into a holder object which is then used to construct a real object when the get function is called. |
void |
loadObjectConfiguration(String xmlFile,
String id,
ClassLoader classLoader)
This procedure loads an xml file into a holder object which is then used to construct a real object when the get function is called. |
void |
loadObjectConfigurationFromElement(org.dom4j.Element element,
ObjectDescriptor od,
String id)
|
void |
loadObjectConfigurationFromElement(org.dom4j.Element element,
ObjectDescriptor od,
String id,
ClassLoader classLoader)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLObjectConfigurationFactory()
Method Detail |
---|
public boolean hasObjectConfiguration(String id)
hasObjectConfiguration
in interface ObjectConfigurationFactory
id
- Identifier for the object configuration to retrieve.
public ObjectConfiguration getObjectConfiguration(String id, Map params) throws ObjectConfigurationException
getObjectConfiguration
in interface ObjectConfigurationFactory
id
- Identifier for the object configuration to retrieve.
ObjectConfigurationException
public void loadObjectConfiguration(String xmlFile, String id) throws ObjectConfigurationException
xmlFile
- the name of the resource on the classpath from which to load the config.id
- Identifier for the object configuration to retrieve.
ObjectConfigurationException
- if something is really wrongpublic void loadObjectConfiguration(String xmlFile, String id, ClassLoader classLoader) throws ObjectConfigurationException
loadObjectConfiguration
in interface ObjectConfigurationFactory
xmlFile
- the name of the resource on the classpath from which to load the config.id
- Identifier for the object configuration to retrieve.classLoader
- ClassLoader to use to load ObjectDescriptor classes and the xml file
ObjectConfigurationException
- if something is really wrongpublic void loadObjectConfigurationFromElement(org.dom4j.Element element, ObjectDescriptor od, String id)
public void loadObjectConfigurationFromElement(org.dom4j.Element element, ObjectDescriptor od, String id, ClassLoader classLoader)
loadObjectConfigurationFromElement
in interface ObjectConfigurationFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |