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

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

public class ImportedServiceImpl
extends Object
implements 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()
           
 ResourceType getType()
           
 int hashCode()
           
 boolean isList()
           
 boolean isMultiple()
           
 boolean isOptional()
           
 boolean isSatisfied(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 InvalidAttributeException
Build an ImportedServiceImpl from its elements

Parameters:
optional -
iface -
componentName -
blueprintFilter -
id -
isMultiple -
Throws:
InvalidAttributeException

ImportedServiceImpl

@Deprecated
public ImportedServiceImpl(String ifaceName,
                                      Map<String,String> attributes)
                    throws 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:
InvalidAttributeException
Method Detail

getFilter

public String getFilter()
Specified by:
getFilter in interface WrappedReferenceMetadata

getType

public ResourceType getType()
Specified by:
getType in interface Consumer

isMultiple

public boolean isMultiple()
Specified by:
isMultiple in interface Consumer

isOptional

public boolean isOptional()
Specified by:
isOptional in interface Consumer
Specified by:
isOptional in interface WrappedReferenceMetadata

isSatisfied

public boolean isSatisfied(Provider capability)
Specified by:
isSatisfied in interface Consumer

getComponentName

public String getComponentName()
Specified by:
getComponentName in interface WrappedReferenceMetadata

getId

public String getId()
Specified by:
getId in interface WrappedReferenceMetadata

getInterface

public String getInterface()
Specified by:
getInterface in interface WrappedReferenceMetadata

isList

public boolean isList()
Specified by:
isList in interface WrappedReferenceMetadata

getAttributeFilter

public String getAttributeFilter()
Specified by:
getAttributeFilter in interface 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 DeploymentMFElement


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