org.apache.felix.ipojo.composite.service.provides
Class SpecificationMetadata

java.lang.Object
  extended by org.apache.felix.ipojo.composite.service.provides.SpecificationMetadata

public class SpecificationMetadata
extends Object

Represent a service specification.

Author:
Felix Project Team

Constructor Summary
SpecificationMetadata(Class clazz, String type, ProvidedServiceHandler psd)
          Constructor.
SpecificationMetadata(String name, BundleContext context, boolean isAggregate, boolean isOptional, ProvidedServiceHandler psd)
          Constructor.
 
Method Summary
 String getComponentType()
           
 MethodMetadata getMethodByName(String name)
          Get a method by its name.
 List getMethods()
           
 String getName()
           
 boolean isAggregate()
           
 boolean isInterface()
           
 boolean isOptional()
           
 void setIsOptional(boolean optional)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecificationMetadata

public SpecificationMetadata(String name,
                             BundleContext context,
                             boolean isAggregate,
                             boolean isOptional,
                             ProvidedServiceHandler psd)
Constructor.

Parameters:
name - : specification name.
context - : bundle context.
isAggregate - : is the specification aggregate.
isOptional - : is the specification optional.
psd - : the handler.

SpecificationMetadata

public SpecificationMetadata(Class clazz,
                             String type,
                             ProvidedServiceHandler psd)
Constructor.

Parameters:
clazz - : class
type - : component type
psd - : the parent handler
Method Detail

getName

public String getName()

getMethods

public List getMethods()

getMethodByName

public MethodMetadata getMethodByName(String name)
Get a method by its name.

Parameters:
name - : method name
Returns:
the method metadata contained in the current specification with the given name. Null if the method is not found.

isAggregate

public boolean isAggregate()

isOptional

public boolean isOptional()

isInterface

public boolean isInterface()

setIsOptional

public void setIsOptional(boolean optional)

getComponentType

public String getComponentType()


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.