|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.graph.ExecutionContext
org.modeshape.graph.sequencer.StreamSequencerContext
@ThreadSafe public class StreamSequencerContext

A special ExecutionContext that is used for sequencing streams.
| Field Summary |
|---|
| Fields inherited from class org.modeshape.graph.ExecutionContext |
|---|
DEFAULT_CONTEXT |
| Constructor Summary | |
|---|---|
StreamSequencerContext(ExecutionContext context,
Path inputPath,
Set<Property> inputProperties,
String mimeType,
Problems problems)
|
|
| Method Summary | |
|---|---|
Path |
getInputPath()
Return the path of the input node containing the content being sequenced. |
Set<Property> |
getInputProperties()
Return the set of properties from the input node containing the content being sequenced. |
Property |
getInputProperty(Name name)
Return the property with the supplied name from the input node containing the content being sequenced. |
String |
getMimeType()
Return the MIME-type of the content being sequenced. |
Problems |
getProblems()
Get an interface that can be used to record various problems, warnings, and errors that are not extreme enough to warrant throwing exceptions. |
StreamSequencerContext |
with(ClassLoaderFactory classLoaderFactory)
Create a new execution context that mirrors this context but that uses the supplied class loader
factory. |
StreamSequencerContext |
with(Map<String,String> data)
Create a new execution context that mirrors this context but that contains the supplied data. |
StreamSequencerContext |
with(MimeTypeDetector mimeTypeDetector)
Create a new execution context that is the same as this context, but which uses the supplied MIME
type detector. |
StreamSequencerContext |
with(NamespaceRegistry namespaceRegistry)
Create a new execution context that mirrors this context but that uses the supplied namespace registry. |
StreamSequencerContext |
with(SecurityContext securityContext)
Create an ExecutionContext that is the same as this context, but which uses the supplied security context. |
StreamSequencerContext |
with(String processId)
Create a new execution context that mirrors this context but that contains the supplied process identifier. |
StreamSequencerContext |
with(String key,
String value)
Create a new execution context that mirrors this context but that contains the supplied key-value pair in the new context's data. |
| Methods inherited from class org.modeshape.graph.ExecutionContext |
|---|
clone, getClassLoader, getClassLoaderFactory, getData, getId, getLogger, getLogger, getMimeTypeDetector, getNamespaceRegistry, getProcessId, getPropertyFactory, getSecurityContext, getValueFactories, initializeDefaultNamespaces, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StreamSequencerContext(ExecutionContext context,
Path inputPath,
Set<Property> inputProperties,
String mimeType,
Problems problems)
| Method Detail |
|---|
public Path getInputPath()
public Set<Property> getInputProperties()
null.public Property getInputProperty(Name name)
name -
null if none exists.public String getMimeType()
public Problems getProblems()
public StreamSequencerContext with(ClassLoaderFactory classLoaderFactory)
class loader
factory.
with in class ExecutionContextclassLoaderFactory - the new class loader factory implementation, or null if the default implementation should be used
ExecutionContext.with(org.modeshape.common.component.ClassLoaderFactory)public StreamSequencerContext with(Map<String,String> data)
with in class ExecutionContextdata - the data that is to be affiliated with the resulting context or null if the resulting context should have no
data
ExecutionContext.with(java.util.Map)public StreamSequencerContext with(MimeTypeDetector mimeTypeDetector)
MIME
type detector.
with in class ExecutionContextmimeTypeDetector - the new MIME type detector implementation, or null if the context should use a
MimeTypeDetectors instance with an ExtensionBasedMimeTypeDetector
ExecutionContext.with(org.modeshape.graph.mimetype.MimeTypeDetector)public StreamSequencerContext with(NamespaceRegistry namespaceRegistry)
value factories and property factory all make use of
the new namespace registry.
with in class ExecutionContextnamespaceRegistry - the new namespace registry implementation, or null if the default implementation should be used
ExecutionContext.with(org.modeshape.graph.property.NamespaceRegistry)public StreamSequencerContext with(SecurityContext securityContext)
ExecutionContext that is the same as this context, but which uses the supplied security context.
with in class ExecutionContextsecurityContext - the new security context to use; may be null
ExecutionContext.with(org.modeshape.graph.SecurityContext)
public StreamSequencerContext with(String key,
String value)
with in class ExecutionContextkey - the key for the new data that is to be affiliated with the resulting contextvalue - the data value to be affiliated with the supplied key in the resulting context, or null if an existing data
affiliated with the key should be removed in the resulting context
ExecutionContext.with(java.lang.String, java.lang.String)public StreamSequencerContext with(String processId)
with in class ExecutionContextprocessId - the identifier of the process
ExecutionContext.with(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||