DSPContext.java :  » OSGi » netbeams » org » netbeams » dsp » Java Open Source

Java Open Source » OSGi » netbeams 
netbeams » org » netbeams » dsp » DSPContext.java
package org.netbeams.dsp;

/**
 * DSP Context provides the mechanism by which DSP components can assess the DSP platform.
 */


public interface DSPContext {

  /**
   * Provides the access to the MessageBroker. The access is implemented through a adapter pattern.
   * 
   * @return
   * @throws DSPException
   */
  public MessageBrokerAccessor getDataBroker() throws DSPException;
  

  /**
   * Returns a resource from the underlying DSP implementation. If the
   * underlying implementation is OSGi, this will allow access to OSGi
   * related resources.
   * 
   * @param resource Description of the resource.
   * @return Reference to the resource, null if the resource could not be located.
   */
  public Object getResource(String resource);
  
  /**
   * Provides the path to the platform directory where the all platform are located.
   * 
   * @return
   */
  public String getHomePlatformDirectoryPath();
  
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.