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

java.lang.Object
  extended by org.apache.aries.application.modelling.impl.AbstractParserProxy
All Implemented Interfaces:
org.apache.aries.application.modelling.ParserProxy
Direct Known Subclasses:
ParserProxyImpl

public abstract class AbstractParserProxy
extends Object
implements org.apache.aries.application.modelling.ParserProxy


Constructor Summary
AbstractParserProxy()
           
 
Method Summary
protected  boolean isBlacklisted(String iface, String blueprintFilter)
          Some services are injected directly into isolated frameworks by default.
 List<? extends org.apache.aries.application.modelling.WrappedServiceMetadata> parse(InputStream blueprintToParse)
           
 List<? extends org.apache.aries.application.modelling.WrappedServiceMetadata> parse(List<URL> blueprintsToParse)
           
 List<? extends org.apache.aries.application.modelling.WrappedServiceMetadata> parse(URL blueprintToParse)
           
 org.apache.aries.application.modelling.ParsedServiceElements parseAllServiceElements(InputStream blueprintToParse)
           
protected abstract  org.apache.aries.blueprint.ComponentDefinitionRegistry parseCDR(InputStream blueprintToParse)
           
protected abstract  org.apache.aries.blueprint.ComponentDefinitionRegistry parseCDR(List<URL> blueprintsToParse)
           
 void setModellingManager(org.apache.aries.application.modelling.ModellingManager m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractParserProxy

public AbstractParserProxy()
Method Detail

parseCDR

protected abstract org.apache.aries.blueprint.ComponentDefinitionRegistry parseCDR(List<URL> blueprintsToParse)
                                                                            throws Exception
Throws:
Exception

parseCDR

protected abstract org.apache.aries.blueprint.ComponentDefinitionRegistry parseCDR(InputStream blueprintToParse)
                                                                            throws Exception
Throws:
Exception

setModellingManager

public void setModellingManager(org.apache.aries.application.modelling.ModellingManager m)

parse

public List<? extends org.apache.aries.application.modelling.WrappedServiceMetadata> parse(List<URL> blueprintsToParse)
                                                                                    throws Exception
Specified by:
parse in interface org.apache.aries.application.modelling.ParserProxy
Throws:
Exception

parse

public List<? extends org.apache.aries.application.modelling.WrappedServiceMetadata> parse(URL blueprintToParse)
                                                                                    throws Exception
Specified by:
parse in interface org.apache.aries.application.modelling.ParserProxy
Throws:
Exception

parse

public List<? extends org.apache.aries.application.modelling.WrappedServiceMetadata> parse(InputStream blueprintToParse)
                                                                                    throws Exception
Specified by:
parse in interface org.apache.aries.application.modelling.ParserProxy
Throws:
Exception

parseAllServiceElements

public org.apache.aries.application.modelling.ParsedServiceElements parseAllServiceElements(InputStream blueprintToParse)
                                                                                     throws Exception
Specified by:
parseAllServiceElements in interface org.apache.aries.application.modelling.ParserProxy
Throws:
Exception

isBlacklisted

protected boolean isBlacklisted(String iface,
                                String blueprintFilter)
Some services are injected directly into isolated frameworks by default. We do not need to model these services. They are not represented as ExportedServices (Capabilities) in the various OBR registries, and so cannot be resolved against. Since they are injected directly into each isolated framework, we do not need an entry in DEPLOYMENT.MF's Deployed-ImportService header for any of these services.

Parameters:
iface - The interface declared on a blueprint reference
blueprintFilter - The filter on the blueprint reference
Returns:
True if the service is not 'blacklisted' and so may be exposed in the model being generated.


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