|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.bootstrap.MIServicePublisherOSGi
public class MIServicePublisherOSGi
ServicePublisher controller for OSGi services
It implements the ServicePublisher aspect and enables SOFA2 components to publish their interfaces as OSGi services
Nested Class Summary | |
---|---|
class |
MIServicePublisherOSGi.Publisher
Represents a single service (interface) |
Constructor Summary | |
---|---|
MIServicePublisherOSGi()
|
Method Summary | |
---|---|
java.lang.Object |
getDelegatedProvided()
Takes reference to delegated provided interface implementation. |
java.lang.Object |
getProvided(java.lang.String name)
Takes reference to implementation of provided interface with given name. |
void |
init(ComponentDescription component,
java.util.Map<java.lang.String,java.lang.String> parameters)
Initializes the controller |
void |
publish()
Publish services |
void |
setDelegatedRequired(java.lang.Object ref)
Gives the microcomponent reference to interface where to delegate calls. |
void |
setRequired(java.lang.String name,
java.lang.Object ref)
Gives the microcomponent reference to destination of its required interface. |
void |
unpublish()
Unpublish services |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MIServicePublisherOSGi()
Method Detail |
---|
public void init(ComponentDescription component, java.util.Map<java.lang.String,java.lang.String> parameters) throws SOFAException
init
in interface SOFAMicroComponent
component
- SOFA2 componentparameters
- parameters
SOFAException
public java.lang.Object getDelegatedProvided() throws SOFAException
SOFAMicroInterceptor
getDelegatedProvided
in interface SOFAMicroInterceptor
SOFAException
public java.lang.Object getProvided(java.lang.String name) throws SOFAException
SOFAMicroComponent
getProvided
in interface SOFAMicroComponent
name
- Name of the provided interface.
SOFAException
public void setDelegatedRequired(java.lang.Object ref) throws SOFAException
SOFAMicroInterceptor
setDelegatedRequired
in interface SOFAMicroInterceptor
ref
- Interface implementation reference to delegate to.
SOFAException
public void setRequired(java.lang.String name, java.lang.Object ref) throws SOFAException
SOFAMicroComponent
setRequired
in interface SOFAMicroComponent
name
- Name of the required interface.ref
- Reference to the destination interface implementation.
SOFAException
public void publish()
publish
in interface MIServicePublisher
public void unpublish()
unpublish
in interface MIServicePublisher
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |