org.milyn.container
Class MockContainerResourceLocator

java.lang.Object
  extended by org.milyn.container.MockContainerResourceLocator
All Implemented Interfaces:
ContainerResourceLocator, ExternalResourceLocator

public class MockContainerResourceLocator
extends Object
implements ContainerResourceLocator


Field Summary
static File TEST_STANDALONE_CTX_BASE
           
 
Constructor Summary
MockContainerResourceLocator()
           
 
Method Summary
 InputStream getResource(String uri)
           
 InputStream getResource(String configName, String defaultUri)
           
 void setResource(String nameOrUri, InputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST_STANDALONE_CTX_BASE

public static final File TEST_STANDALONE_CTX_BASE
Constructor Detail

MockContainerResourceLocator

public MockContainerResourceLocator()
Method Detail

setResource

public void setResource(String nameOrUri,
                        InputStream stream)

getResource

public InputStream getResource(String configName,
                               String defaultUri)
                        throws IllegalArgumentException,
                               IOException
Specified by:
getResource in interface ContainerResourceLocator
Throws:
IllegalArgumentException
IOException

getResource

public InputStream getResource(String uri)
                        throws IllegalArgumentException,
                               IOException
Specified by:
getResource in interface ExternalResourceLocator
Throws:
IllegalArgumentException
IOException


Copyright © 2008. All Rights Reserved.