org.apache.felix.scrplugin.om
Class Service

java.lang.Object
  extended by org.apache.felix.scrplugin.om.Service

public class Service
extends Object

Service...


Field Summary
protected  List<Interface> interfaces
          The list of implemented interfaces.
protected  boolean isServicefactory
           
 
Constructor Summary
Service()
          Default constructor.
 
Method Summary
 void addInterface(Interface interf)
          Add an interface to the list of interfaces.
 Interface findInterface(String name)
          Search for an implemented interface.
 List<Interface> getInterfaces()
           
 boolean isServicefactory()
           
 void setServicefactory(boolean flag)
           
 void setServicefactory(String servicefactory)
           
 void validate(int specVersion, IssueLog iLog)
          Validate the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isServicefactory

protected boolean isServicefactory

interfaces

protected final List<Interface> interfaces
The list of implemented interfaces.

Constructor Detail

Service

public Service()
Default constructor.

Method Detail

isServicefactory

public boolean isServicefactory()

setServicefactory

public void setServicefactory(String servicefactory)

setServicefactory

public void setServicefactory(boolean flag)

getInterfaces

public List<Interface> getInterfaces()

findInterface

public Interface findInterface(String name)
Search for an implemented interface.

Parameters:
name - The name of the interface.
Returns:
The interface if it is implemented by this service or null.

addInterface

public void addInterface(Interface interf)
Add an interface to the list of interfaces.

Parameters:
interf - The interface.

validate

public void validate(int specVersion,
                     IssueLog iLog)
              throws SCRDescriptorException
Validate the service. If errors occur a message is added to the issues list, warnings can be added to the warnings list.

Throws:
SCRDescriptorException


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