org.apache.aries.application.modelling.impl
Class ModelledResourceManagerImpl

java.lang.Object
  extended by org.apache.aries.application.modelling.impl.ModelledResourceManagerImpl
All Implemented Interfaces:
ModelledResourceManager

public class ModelledResourceManagerImpl
extends Object
implements ModelledResourceManager


Constructor Summary
ModelledResourceManagerImpl()
           
 
Method Summary
 ModelledResource getModelledResource(String uri, IDirectory bundle)
           
 ParserProxy getParserProxy()
           
 ParsedServiceElements getServiceElements(IDirectory archive)
          For a given file, which we know to be a bundle, parse out all the service, reference and reference-list elements.
 void setModellingManager(ModellingManager m)
           
 void setParserProxy(ParserProxy p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelledResourceManagerImpl

public ModelledResourceManagerImpl()
Method Detail

setModellingManager

public void setModellingManager(ModellingManager m)

setParserProxy

public void setParserProxy(ParserProxy p)

getParserProxy

public ParserProxy getParserProxy()

getServiceElements

public ParsedServiceElements getServiceElements(IDirectory archive)
                                         throws ModellerException
For a given file, which we know to be a bundle, parse out all the service, reference and reference-list elements. This method will return all such services, including anonymous ones, but should not return indistinguishable duplicates.

Specified by:
getServiceElements in interface ModelledResourceManager
Parameters:
archive - CommonArchive. The caller is responsible for closing this afterwards.
Returns:
ParsedServiceElementsImpl
Throws:
OpenFailureException
ModellerException

getModelledResource

public ModelledResource getModelledResource(String uri,
                                            IDirectory bundle)
                                     throws ModellerException
Specified by:
getModelledResource in interface ModelledResourceManager
Throws:
ModellerException


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.