Examples of ServiceID


Examples of net.jini.core.lookup.ServiceID

                           e);
                throw e; //rethrow the exception since proxy may be unusable
            }
            leaseRenewalMgr.renewUntil(serviceLease, Lease.FOREVER,
                                       renewalDuration, dListener);
            ServiceID tmpID = null;
            synchronized(joinSet) {
                srvcRegistration = tmpSrvcRegistration;
                synchronized(serviceItem) {//accessing serviceItem.serviceID
                    if(serviceItem.serviceID == null) {
                        serviceItem.serviceID
View Full Code Here

Examples of net.jini.core.lookup.ServiceID

  public void discarded(DiscoveryEvent e) {
      final ServiceRegistrar[] regs = e.getRegistrars();
      SwingUtilities.invokeLater(wrap(new Runnable() {
    public void run() {
        for (int i = 0; i < regs.length; i++) {
      ServiceID id = regs[i].getServiceID();
      if (lookup != null &&
          id.equals(lookup.getServiceID()))
      {
          lookup = null;
          seqNo = Long.MAX_VALUE;
      }
      for (int j = 0;
           j < registrars.getMenuComponentCount();
           j++)
      {
          JMenuItem item =
        (JMenuItem) registrars.getMenuComponent(j);
          if (item instanceof RegistrarMenuItem &&
        id.equals(((RegistrarMenuItem) item).id))
          {
        item.setSelected(false);
        registrars.remove(item);
        if (registrars.getMenuComponentCount() == 0)
            addNone(registrars);
View Full Code Here

Examples of net.jini.core.lookup.ServiceID

                synchronized(serviceIdMap) {
                    /* 1. Cleanup "orphaned" itemReg's. */
                    Iterator iter = (serviceIdMap.entrySet()).iterator();
                    while(iter.hasNext()) {
                        Map.Entry e = (Map.Entry)iter.next();
                        ServiceID srvcID = (ServiceID)e.getKey();
                        ServiceItem itemInSnapshot = findItem(srvcID,
                                                              matches.items);
                        if(itemInSnapshot != null) continue;//not an orphan
                        ServiceItemReg itemReg = (ServiceItemReg)e.getValue();
                        UnmapProxyTask t = new UnmapProxyTask(reg,
View Full Code Here

Examples of net.jini.core.lookup.ServiceID

  /* Kick off independent threads.
   */

  // start the JoinStateManager
  joinStateManager.startManager(config, log, spaceProxy,
      new ServiceID(topUuid.getMostSignificantBits(),
        topUuid.getLeastSignificantBits()),
      attributesFor());

  operationJournal.setDaemon(true);
  operationJournal.start();
View Full Code Here

Examples of net.jini.core.lookup.ServiceID

                 */
                synchronized(serviceIdMap) {
                    Iterator iter = (serviceIdMap.entrySet()).iterator();
                    while(iter.hasNext()) {
                        Map.Entry e = (Map.Entry)iter.next();
                        ServiceID srvcID = (ServiceID)e.getKey();
                        ServiceItemReg itemReg = (ServiceItemReg)e.getValue();
                        UnmapProxyTask t = new UnmapProxyTask(reg,
                                                              itemReg,
                                                              srvcID,
                                                              taskSeqN++);
View Full Code Here

Examples of org.apache.tapestry5.ioc.annotations.ServiceId

    /**
     * Invoked for public methods that have the proper prefix.
     */
    private void addServiceDef(final Method method, boolean modulePreventsServiceDecoration)
    {
        ServiceId serviceIdAnnotation = method.getAnnotation(ServiceId.class);

        String serviceId;

        if (serviceIdAnnotation != null)
        {
            serviceId = serviceIdAnnotation.value();
        }
        else
        {
            serviceId = stripMethodPrefix(method, BUILD_METHOD_NAME_PREFIX);
        }
View Full Code Here

Examples of org.apache.tapestry5.ioc.annotations.ServiceId

        // Set defaults for the other properties.

        eagerLoad = serviceImplementation.getAnnotation(EagerLoad.class) != null;

        ServiceId serviceIdAnnotation = serviceImplementation.getAnnotation(ServiceId.class);

        if (serviceIdAnnotation != null)
        {
            serviceId = serviceIdAnnotation.value();
        }
        else
        {
            serviceId = serviceInterface.getSimpleName();
        }
View Full Code Here

Examples of org.apache.tapestry5.ioc.annotations.ServiceId

     *            annotated element to get annotations from
     * @since 5.3.0
     */
    public static String getServiceId(AnnotatedElement annotated)
    {
        ServiceId serviceIdAnnotation = annotated.getAnnotation(ServiceId.class);

        if (serviceIdAnnotation != null) { return serviceIdAnnotation.value(); }

        Named namedAnnotation = annotated.getAnnotation(Named.class);

        if (namedAnnotation != null)
        {
View Full Code Here

Examples of org.apache.tapestry5.ioc.annotations.ServiceId

        // Set defaults for the other properties.

        eagerLoad = serviceImplementation.getAnnotation(EagerLoad.class) != null;

        ServiceId serviceIdAnnotation = serviceImplementation.getAnnotation(ServiceId.class);

        if (serviceIdAnnotation != null)
        {
            serviceId = serviceIdAnnotation.value();
        }
        else
        {
            serviceId = serviceInterface.getSimpleName();
        }
View Full Code Here

Examples of org.apache.tapestry5.ioc.annotations.ServiceId

    /**
     * Invoked for public methods that have the proper prefix.
     */
    private void addServiceDef(final Method method, boolean modulePreventsServiceDecoration)
    {
        ServiceId serviceIdAnnotation = method.getAnnotation(ServiceId.class);

        String serviceId;

        if (serviceIdAnnotation != null)
        {
            serviceId = serviceIdAnnotation.value();
        }
        else
        {
            serviceId = stripMethodPrefix(method, BUILD_METHOD_NAME_PREFIX);
        }
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.