org.apache.felix.framework.searchpolicy
Class ContentLoaderImpl

java.lang.Object
  extended by org.apache.felix.framework.searchpolicy.ContentLoaderImpl
All Implemented Interfaces:
IContentLoader

public class ContentLoaderImpl
extends java.lang.Object
implements IContentLoader


Constructor Summary
ContentLoaderImpl(Logger logger, IContent content)
           
 
Method Summary
 void close()
           
 java.lang.Class getClass(java.lang.String name)
           
 IContent[] getClassPath()
           
 IContent getContent()
           
 java.io.InputStream getInputStream(int index, java.lang.String urlPath)
           
 Logger getLogger()
           
 java.net.URL getResource(java.lang.String name)
           
 java.net.URL getResourceFromContent(java.lang.String name)
           
 java.util.Enumeration getResources(java.lang.String name)
           
 ISearchPolicy getSearchPolicy()
           
 java.lang.Object getSecurityContext()
           
 IURLPolicy getURLPolicy()
           
 boolean hasInputStream(int index, java.lang.String urlPath)
           
 void open()
           
 void setSearchPolicy(ISearchPolicy searchPolicy)
           
 void setSecurityContext(java.lang.Object securityContext)
           
 void setURLPolicy(IURLPolicy urlPolicy)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentLoaderImpl

public ContentLoaderImpl(Logger logger,
                         IContent content)
Method Detail

getLogger

public Logger getLogger()

open

public void open()
Specified by:
open in interface IContentLoader

close

public void close()
Specified by:
close in interface IContentLoader

getContent

public IContent getContent()
Specified by:
getContent in interface IContentLoader

getClassPath

public IContent[] getClassPath()

setSearchPolicy

public void setSearchPolicy(ISearchPolicy searchPolicy)
Specified by:
setSearchPolicy in interface IContentLoader

getSearchPolicy

public ISearchPolicy getSearchPolicy()
Specified by:
getSearchPolicy in interface IContentLoader

setURLPolicy

public void setURLPolicy(IURLPolicy urlPolicy)
Specified by:
setURLPolicy in interface IContentLoader

getURLPolicy

public IURLPolicy getURLPolicy()
Specified by:
getURLPolicy in interface IContentLoader

setSecurityContext

public void setSecurityContext(java.lang.Object securityContext)
Specified by:
setSecurityContext in interface IContentLoader

getSecurityContext

public java.lang.Object getSecurityContext()
Specified by:
getSecurityContext in interface IContentLoader

getClass

public java.lang.Class getClass(java.lang.String name)
Specified by:
getClass in interface IContentLoader

getResource

public java.net.URL getResource(java.lang.String name)
Specified by:
getResource in interface IContentLoader

getResources

public java.util.Enumeration getResources(java.lang.String name)
Specified by:
getResources in interface IContentLoader

getResourceFromContent

public java.net.URL getResourceFromContent(java.lang.String name)
Specified by:
getResourceFromContent in interface IContentLoader

hasInputStream

public boolean hasInputStream(int index,
                              java.lang.String urlPath)
Specified by:
hasInputStream in interface IContentLoader

getInputStream

public java.io.InputStream getInputStream(int index,
                                          java.lang.String urlPath)
                                   throws java.io.IOException
Specified by:
getInputStream in interface IContentLoader
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object