com.goldenhammer.dicom
Class CommandFactory

java.lang.Object
  extended bycom.goldenhammer.dicom.CommandFactory

public class CommandFactory
extends java.lang.Object

This class creates DICOM commands through the toolkit specified in its properties file


Method Summary
 CEchoCommand getCEchoCommand()
          This method returns an instance of the CEcho command specified in the properties file
 CStoreImageCommand getCStoreImageCommand()
          This method returns an instance of the CStoreImage command specified in the properties file
static CommandFactory getInstance()
          Get an instance of the CommandFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CommandFactory getInstance()
                                  throws java.io.FileNotFoundException,
                                         java.io.IOException
Get an instance of the CommandFactory

Returns:
an instance of the CommandFactory
Throws:
java.io.IOException - if the properties couldn't be read
java.io.FileNotFoundException - if the properties couldn't be found

getCEchoCommand

public CEchoCommand getCEchoCommand()
                             throws java.lang.Exception
This method returns an instance of the CEcho command specified in the properties file

Returns:
the cecho command
Throws:
java.lang.Exception - thrown if there is a problem with reflection

getCStoreImageCommand

public CStoreImageCommand getCStoreImageCommand()
                                         throws java.lang.Exception
This method returns an instance of the CStoreImage command specified in the properties file

Returns:
the cstore command
Throws:
java.lang.Exception - thrown if there is a problem with reflection