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

java.lang.Object
  extended by org.apache.aries.application.modelling.impl.ImportedServiceImpl
All Implemented Interfaces:
org.apache.aries.application.modelling.Consumer, org.apache.aries.application.modelling.DeploymentMFElement, org.apache.aries.application.modelling.ImportedService, org.apache.aries.application.modelling.WrappedReferenceMetadata

public class ImportedServiceImpl
extends Object
implements org.apache.aries.application.modelling.ImportedService

an Import-Service entry


Constructor Summary
ImportedServiceImpl(boolean optional, String iface, String componentName, String blueprintFilter, String id, boolean isMultiple)
          Build an ImportedServiceImpl from its elements
ImportedServiceImpl(String ifaceName, Map<String,String> attributes)
          Deprecated. 
 
Method Summary
 boolean equals(Object o)
           
 String getAttributeFilter()
           
 String getComponentName()
           
 String getFilter()
           
 String getId()
           
 String getInterface()
           
 org.apache.aries.application.modelling.ResourceType getType()
           
 int hashCode()
           
 boolean isList()
           
 boolean isMultiple()
           
 boolean isOptional()
           
 boolean isSatisfied(org.apache.aries.application.modelling.Provider capability)
           
 String toDeploymentString()
          A String suitable for use in DeployedImport-Service
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImportedServiceImpl

public ImportedServiceImpl(boolean optional,
                           String iface,
                           String componentName,
                           String blueprintFilter,
                           String id,
                           boolean isMultiple)
                    throws org.apache.aries.application.InvalidAttributeException
Build an ImportedServiceImpl from its elements

Parameters:
optional -
iface -
componentName -
blueprintFilter -
id -
isMultiple -
Throws:
org.apache.aries.application.InvalidAttributeException

ImportedServiceImpl

@Deprecated
public ImportedServiceImpl(String ifaceName,
                                      Map<String,String> attributes)
                    throws org.apache.aries.application.InvalidAttributeException
Deprecated. 

Deprecated constructor for building these from deprecated Export-Service manifest headers. Do not use this constructor for any other purpose.

Parameters:
ifaceName -
attributes -
Throws:
org.apache.aries.application.InvalidAttributeException
Method Detail

getFilter

public String getFilter()
Specified by:
getFilter in interface org.apache.aries.application.modelling.WrappedReferenceMetadata

getType

public org.apache.aries.application.modelling.ResourceType getType()
Specified by:
getType in interface org.apache.aries.application.modelling.Consumer

isMultiple

public boolean isMultiple()
Specified by:
isMultiple in interface org.apache.aries.application.modelling.Consumer

isOptional

public boolean isOptional()
Specified by:
isOptional in interface org.apache.aries.application.modelling.Consumer
Specified by:
isOptional in interface org.apache.aries.application.modelling.WrappedReferenceMetadata

isSatisfied

public boolean isSatisfied(org.apache.aries.application.modelling.Provider capability)
Specified by:
isSatisfied in interface org.apache.aries.application.modelling.Consumer

getComponentName

public String getComponentName()
Specified by:
getComponentName in interface org.apache.aries.application.modelling.WrappedReferenceMetadata

getId

public String getId()
Specified by:
getId in interface org.apache.aries.application.modelling.WrappedReferenceMetadata

getInterface

public String getInterface()
Specified by:
getInterface in interface org.apache.aries.application.modelling.WrappedReferenceMetadata

isList

public boolean isList()
Specified by:
isList in interface org.apache.aries.application.modelling.WrappedReferenceMetadata

getAttributeFilter

public String getAttributeFilter()
Specified by:
getAttributeFilter in interface org.apache.aries.application.modelling.Consumer

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

toDeploymentString

public String toDeploymentString()
A String suitable for use in DeployedImport-Service

Specified by:
toDeploymentString in interface org.apache.aries.application.modelling.DeploymentMFElement


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