|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.muse.core.AbstractEnvironment
org.apache.muse.core.platform.osgi.OSGiEnvironmentImpl
public class OSGiEnvironmentImpl
OSGiEnvironmentImpl the implementation of the Muse platform Environment
for an OSGi deployment
Field Summary | |
---|---|
protected ThreadLocal |
localEnvironmentContext
|
Constructor Summary | |
---|---|
OSGiEnvironmentImpl(boolean createSoapClient)
constructor for OSGiEnvironmentImpl |
Method Summary | |
---|---|
InputStream |
getDataResourceStream(String path)
gets an InputStream for a given path relative to the currently
executing Bundle. |
EndpointReference |
getDeploymentEPR()
method not implemented for the OSGi environment |
File |
getRealDirectory()
method not implemented for the OSGi environment |
org.osgi.framework.Bundle |
getThreadLocalBundle()
gets the environment's bundle context for the currently executing thread. |
void |
setThreadLocalBundle(org.osgi.framework.Bundle bundle)
sets the environment's bundle context for the currently executing thread |
Methods inherited from class org.apache.muse.core.AbstractEnvironment |
---|
addAddressingContext, createRelativePath, createSoapClient, getAddressingContext, getClassLoader, getDataResource, getDefaultEPR, getDefaultURI, getDeploymentURI, getDocument, getSoapClient, removeAddressingContext, setDefaultURI, setSoapClient |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.muse.core.Environment |
---|
addAddressingContext, createRelativePath, getAddressingContext, getClassLoader, getDataResource, getDefaultURI, getDocument, getSoapClient, removeAddressingContext, setDefaultURI, setSoapClient |
Field Detail |
---|
protected ThreadLocal localEnvironmentContext
Constructor Detail |
---|
public OSGiEnvironmentImpl(boolean createSoapClient)
createSoapClient
- AbstractEnvironment.AbstractEnvironment(boolean)
Method Detail |
---|
public EndpointReference getDeploymentEPR()
getDeploymentEPR
in interface Environment
public File getRealDirectory()
getRealDirectory
in interface Environment
public org.osgi.framework.Bundle getThreadLocalBundle()
getThreadLocalBundle
in interface OSGiEnvironment
public void setThreadLocalBundle(org.osgi.framework.Bundle bundle)
setThreadLocalBundle
in interface OSGiEnvironment
bundle
- the Bundle
to be used by the currently executing threadpublic InputStream getDataResourceStream(String path)
InputStream
for a given path relative to the currently
executing Bundle.
getDataResourceStream
in interface Environment
getDataResourceStream
in class AbstractEnvironment
path
- the path used in the getResource
call.
InputStream corresponding to the path, or null if not found.- See Also:
Environment.getDataResourceStream(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |