Hi, all:
    I think a notification mechanism useful to let spi provider know what is 
going on in the SCA container.
    A notification should be sent when 
Contribution/Composite/Component/Artifact start or stop. Ofcoz stop() method in 
implementationProvider,bindingProvider,.. can do some work, while some 
resources may be shared by or not relavant to any particular provider( like  
.composite file or .class file).
    So how about adding a notification interface? And ContributionServiceImpl 
may be responsible for sending the notification?
    
this interface may look like:

public static interface ContributionListener{
  void addContribution(Contribution contribution);
  void removeContribution(Contribution contribution);
  void addComposite(Contribution contribution, Composite composite);
  void removeComposite(Contribution contribution, Composite composite);
  void addComponent(Contribution contribution, Component cmp);
  void removeConmponent(Contribution contribution, Component cmp);
  void addArtifact(Contribution contribution, DeployedArtifact model);
  void removeArtifact(Contribution contribution, DeployedArtifact model);
}

Anyone think alike?

Reply via email to