Class InMemoryResource
- java.lang.Object
-
- org.springframework.core.io.AbstractResource
-
- org.springframework.security.util.InMemoryResource
-
- All Implemented Interfaces:
org.springframework.core.io.InputStreamSource
,org.springframework.core.io.Resource
public class InMemoryResource extends org.springframework.core.io.AbstractResource
An in memory implementation of Spring'sResource
interface.Used to create a bean factory from an XML string, rather than a file.
-
-
Constructor Summary
Constructors Constructor Description InMemoryResource(byte[] source)
InMemoryResource(byte[] source, java.lang.String description)
InMemoryResource(java.lang.String source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object res)
java.lang.String
getDescription()
java.io.InputStream
getInputStream()
int
hashCode()
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
-
getInputStream
public java.io.InputStream getInputStream()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classorg.springframework.core.io.AbstractResource
-
equals
public boolean equals(java.lang.Object res)
- Overrides:
equals
in classorg.springframework.core.io.AbstractResource
-
-