|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.shared.SharedObjects
public class SharedObjects
Based on a piece of XML, this factory will give back a list of objects. In other words, it does XML de-serialisation
Constructor Summary | |
---|---|
SharedObjects()
|
|
SharedObjects(String sharedObjectsFile)
|
Method Summary | |
---|---|
static String |
createFilename(String sharedObjectsFile)
|
String |
getFilename()
|
Map<org.pentaho.di.shared.SharedObjects.SharedEntry,SharedObjectInterface> |
getObjectsMap()
|
DatabaseMeta |
getSharedDatabase(String name)
Get the shared database with the specified name |
SharedObjectInterface |
getSharedObject(Class<SharedObjectInterface> clazz,
String objectName)
Return the shared object with the given class and name |
SharedObjectInterface |
getSharedObject(String className,
String objectName)
Return the shared object with the given class name and object name |
void |
removeObject(SharedObjectInterface sharedObject)
Remove the sharedObject from the object map. |
void |
saveToFile()
|
void |
setFilename(String filename)
|
void |
setObjectsMap(Map<org.pentaho.di.shared.SharedObjects.SharedEntry,SharedObjectInterface> objects)
|
void |
storeObject(SharedObjectInterface sharedObject)
Store the sharedObject in the object map. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SharedObjects(String sharedObjectsFile) throws KettleXMLException
KettleXMLException
public SharedObjects() throws KettleXMLException
KettleXMLException
Method Detail |
---|
public static final String createFilename(String sharedObjectsFile)
public Map<org.pentaho.di.shared.SharedObjects.SharedEntry,SharedObjectInterface> getObjectsMap()
public void setObjectsMap(Map<org.pentaho.di.shared.SharedObjects.SharedEntry,SharedObjectInterface> objects)
public void storeObject(SharedObjectInterface sharedObject)
sharedObject
- public void removeObject(SharedObjectInterface sharedObject)
sharedObject
- public void saveToFile() throws IOException, KettleException
IOException
KettleException
public String getFilename()
public void setFilename(String filename)
filename
- the filename to setpublic SharedObjectInterface getSharedObject(Class<SharedObjectInterface> clazz, String objectName)
clazz
- The class of the shared objectobjectName
- the name of the object
public SharedObjectInterface getSharedObject(String className, String objectName)
clasName
- The class name of the shared objectobjectName
- the name of the object
public DatabaseMeta getSharedDatabase(String name)
name
- The name of the shared database
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |