Examples of ServiceEvent


Examples of org.osgi.framework.ServiceEvent

    /**
     * Dispatch a service properties modified event.
     * @param reg : the implicated service registration.
     */
    public void servicePropertiesModified(ServiceRegistrationImpl reg) {
        fireServiceChanged(new ServiceEvent(ServiceEvent.MODIFIED, reg.getReference()));
    }
View Full Code Here

Examples of org.osgi.framework.ServiceEvent

     * Unregister a service.
     * @param reg : the service registration to unregister
     */
    public void unregisterService(ServiceRegistrationImpl reg) {
        m_regs.remove(reg);
        fireServiceChanged(new ServiceEvent(ServiceEvent.UNREGISTERING, reg.getReference()));
    }
View Full Code Here

Examples of org.osgi.framework.ServiceEvent

            // matched previously.
            else if (((ServiceEvent) event).getType() == ServiceEvent.MODIFIED)
            {
                if (filter.match(oldProps))
                {
                    final ServiceEvent se = new ServiceEvent(
                        ServiceEvent.MODIFIED_ENDMATCH,
                        ((ServiceEvent) event).getServiceReference());
                    if (System.getSecurityManager() != null)
                    {
                        AccessController.doPrivileged(new PrivilegedAction()
View Full Code Here

Examples of org.osgi.framework.ServiceEvent

      bc.addServiceListener(this);

      // Make sure we get services already registered
      ServiceReference[] srl = bc.getServiceReferences((String) null, null);
      for(int i = 0; srl != null && i < srl.length; i++) {
        serviceChanged(new ServiceEvent(ServiceEvent.REGISTERED, srl[i]));
      }

      admin = new KSoapAdminImpl(this);

      Hashtable props = new Hashtable();
View Full Code Here

Examples of org.osgi.framework.ServiceEvent

  private void initalizeListener() {
    ServiceReference references[];
    try {
      references = this.bc.getServiceReferences((String)null, MODEL_FACTORY_FILTER);
      for(int i = 0; references != null && i < references.length; i++) {
        this.serviceChanged(new ServiceEvent(ServiceEvent.REGISTERED, references[i]));
      }
    } catch(InvalidSyntaxException e) {
      // this will not happen
      log.error("Syntax error", e);
    }
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.ServiceEvent

    template.setCDAPersonRelationshipType(CDAPersonRelationshipType._Spouse);
    return template;
  }
 
  public static ServiceEvent createServiceEvent() {
    ServiceEvent template = new ServiceEvent();
   
    template.setId("8371D2F1-123F-4A14-A1AC-C6C8023103CF");
    template.setClassCode(HL7ActType.Procedure.code);
    template.setEventCode(new CodedValue("73761001","colonoscopy","2.16.840.1.113883.2.1.3.2.4.15"));
    template.setEffectiveTime(
              new DateRange(new DateValue("201105192000+01"),
                      new DateValue("201105192045+01")));
   
    // Performer
    PersonWithOrganizationUniversal performer = new PersonWithOrganizationUniversal();
    performer.addPersonId(new PersonID()
                  .setNullFlavour(NullFlavour.NI.code));
    performer.setPersonName(new PersonName("Joe Bloggs"));
    performer.setOrgId(new OrgID()
                  .setID("8785675885765767")
                  .setType(OrgIDType.ODSOrgID.code));
    performer.setOrgName("xx organisation");
   
    template.addEventPerformer(new ServiceEventPerformer()
                      .setPerformer(performer)
                      .setPerformerType(HL7PerformerType.Performer.code));
    return template;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.