Package xcat.mobile.ccacore

Examples of xcat.mobile.ccacore.MobileComponentIDServerImpl


      services.setComponent(component);

      // retrieve the ComponentID for this component
      if (!(services.getComponentID() instanceof MobileComponentIDServerImpl))
  throw new NonstandardException("ComponentID not an instance of MobileComponentIDServerImpl");
      MobileComponentIDServerImpl cid =
  (MobileComponentIDServerImpl) services.getComponentID();

      // set the GSH for this ComponentID
      cid.setGSH(instanceHandle);

      // Add a reference to this ComponentID into the Handle Resolver
      HandleResolver.addReference(instanceHandle, cid);

      // if this component has been migrated, return here
      if (isMigrated) {
  logger.finest("Component is migrated, setServices will not be invoked");
  return;
      }

      // invoke the setServices method on the component
      try {
  component.setServices(services);
      } catch (Exception e) {
  logger.severe("Can't invoke setServices on component", e);
  throw new NonstandardException("Can't invoke setServices on component", e);
      }
     
      // add some SDEs to the Component
      logger.finest("adding default Service Data Elements");
      ServiceDataManagerInterface sdm =
  cid.getServiceDataManager();
      ServiceDataElementFactory sdeFactory =
  ServiceDataElementFactory.getDefault();
     
      // an SDE for the name of the Component
      XmlQName serviceQName = XmlQName.Factory.newInstance();
View Full Code Here

TOP

Related Classes of xcat.mobile.ccacore.MobileComponentIDServerImpl

Copyright © 2018 www.massapicom. 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.