public class RuntimeEnvironment extends AbstractEnvironment
Environment
that maintains the set of runtime resources.Constructor and Description |
---|
RuntimeEnvironment(Runtime runtime) |
RuntimeEnvironment(Runtime runtime,
ResourceStore systemStore,
MatchPolicy matchPolicy) |
Modifier and Type | Method and Description |
---|---|
Resource |
addResource(Resource resource) |
Resource |
addRuntimeResource(Resource resource) |
static RuntimeEnvironment |
assertRuntimeEnvironment(Environment env) |
Environment |
cloneEnvironment() |
Set<Capability> |
findProviders(Requirement requirement) |
Resource |
getResource(ResourceIdentity identity) |
Iterator<Resource> |
getResources() |
Iterator<Resource> |
getRuntimeResources() |
ResourceStore |
getSystemStore() |
RuntimeEnvironment |
initDefaultContent() |
RuntimeEnvironment |
initDefaultContent(InputStream content) |
Resource |
removeResource(ResourceIdentity identity) |
Resource |
removeRuntimeResource(ResourceIdentity identity) |
assertAbstractEnvironment, getWirings, putWiring
getMatchPolicy, getName, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMatchPolicy, getName
public RuntimeEnvironment(Runtime runtime)
public RuntimeEnvironment(Runtime runtime, ResourceStore systemStore, MatchPolicy matchPolicy)
public static RuntimeEnvironment assertRuntimeEnvironment(Environment env)
public Resource removeRuntimeResource(ResourceIdentity identity)
public ResourceStore getSystemStore()
public RuntimeEnvironment initDefaultContent()
public RuntimeEnvironment initDefaultContent(InputStream content)
public Resource getResource(ResourceIdentity identity)
getResource
in interface ResourceStore
getResource
in class AbstractResourceStore
public Set<Capability> findProviders(Requirement requirement)
findProviders
in interface ResourceStore
findProviders
in class AbstractResourceStore
public Environment cloneEnvironment()
public Iterator<Resource> getResources()
getResources
in interface ResourceStore
getResources
in class AbstractResourceStore
public Resource addResource(Resource resource)
addResource
in interface ResourceStore
addResource
in class AbstractResourceStore
public Resource removeResource(ResourceIdentity identity)
removeResource
in interface ResourceStore
removeResource
in class AbstractResourceStore
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.