Tabnine Logo
AbstractCapability.initializeCompleted
Code IndexAdd Tabnine to your IDE (free)

How to use
initializeCompleted
method
in
org.apache.muse.core.AbstractCapability

Best Java code snippets using org.apache.muse.core.AbstractCapability.initializeCompleted (Showing top 1 results out of 315)

origin: org.n52.amused/amused-wsdm-muws-adv-impl

public void initializeCompleted()
  throws SoapFault
{
  super.initializeCompleted();
  
  Resource resource = getResource();
  
  //
  // this allows the advertisement capability to hear about 
  // all resource lifecycle events that happen in the application
  //
  ResourceManager manager = resource.getResourceManager();
  manager.addListener(this);
      
  //
  // initialize the advertisement topics
  //
  NotificationProducer wsn = 
    (NotificationProducer)resource.getCapability(WsnConstants.PRODUCER_URI);
  
  wsn.addTopic(MuwsConstants.ADV_ME_CREATION_TOPIC);
  wsn.addTopic(MuwsConstants.ADV_ME_DESTRUCTION_TOPIC);
  
  //
  // create subscriptions for all event consumer that are going to 
  // receive notifications from the above topics
  //
  subscribeInitialConsumer();
}

org.apache.muse.coreAbstractCapabilityinitializeCompleted

Popular methods of AbstractCapability

  • initialize
  • getInitializationParameters
  • getPersistence
  • getResource
  • setMessageHandler
  • setResource

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now