Examples of AdapterType


Examples of com.cloudloop.config.AdapterType

              Class<CloudProvider> implClass;
              implClass = (Class<CloudProvider>) Class.forName( clazz.getName( ) );
              Constructor<CloudProvider> constructor = implClass.getConstructor( );
              CloudProvider provider = constructor.newInstance(  );
              String name = provider.getName( );
              AdapterType type = provider.getAdapterType( );
              Map<String, String> requiredProperties = provider.getRequiredConfigProperties( );
              Map<String, String> optionalProperties = provider.getOptionalConfigProperties( );
              AdapterConfig schema =
                new AdapterConfig(name, clazz, type, requiredProperties, optionalProperties);
              configs.add( schema );
View Full Code Here

Examples of com.cybozu.vmbkp.util.AdapterType

            int unitNumber = profGen.getUnitNumber(diskId);
            long capacity = profGen.getCapacity(diskId);
            assert capacity % 1024L == 0;
            long capacityInKb = capacity / 1024L;

            AdapterType type = profGen.getAdapterType(diskId);
            assert type != AdapterType.UNKNOWN;
            int ckey = profGen.getControllerDeviceKey(diskId);
            int busNumber = profGen.getBusNumber(ckey);

            /* Create virtual disk manager and virtual controller manager. */
 
View Full Code Here

Examples of com.cybozu.vmbkp.util.AdapterType

                }

                /* get the controller information  */
                Integer ckeyI = diskDev.getControllerKey(); assert ckeyI != null;
                int ckey = ckeyI.intValue();
                AdapterType type = getAdapterType(ckey);
                int busNumber = getBusNumber(ckey);
               
                /* create VmdkInfo object. */
                VmdkInfo a = new VmdkInfo(name, uuid, changeId,
                                          key, ckey, capacityInKB, type,
View Full Code Here

Examples of com.cybozu.vmbkp.util.AdapterType

        if (vd == null) {
            return AdapterType.UNKNOWN;
        }
        assert vd.getKey() == ckey;

        AdapterType ret = AdapterType.UNKNOWN;
        if (vd instanceof VirtualIDEController) {
            ret = AdapterType.IDE;
        } else if (vd instanceof VirtualBusLogicController) {
            ret = AdapterType.BUSLOGIC;
        } else if (vd instanceof VirtualLsiLogicController) {
View Full Code Here

Examples of org.codehaus.enunciate.contract.jaxb.adapters.AdapterType

    return convert(accessorType);
  }

  @Override
  public String convert(TypeDeclaration declaration) throws TemplateModelException {
    AdapterType adapterType = AdapterUtil.findAdapterType(declaration);
    if (adapterType != null) {
      return convert(adapterType.getAdaptingType());
    }
    if (declaration instanceof ClassDeclaration) {
      DecoratedTypeMirror superType = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(((ClassDeclaration) declaration).getSuperclass());
      if (superType != null && superType.isInstanceOf(JAXBElement.class.getName())) {
        //for client conversions, we're going to generalize subclasses of JAXBElement to JAXBElement
View Full Code Here

Examples of org.codehaus.enunciate.contract.jaxb.adapters.AdapterType

   *
   * @param declaration The declaration to narrow.
   * @return The narrowed declaration.
   */
  protected ClassDeclaration narrowToAdaptingType(ClassDeclaration declaration) {
    AdapterType adapterType = AdapterUtil.findAdapterType(declaration);
    if (adapterType != null) {
      TypeMirror adaptingType = adapterType.getAdaptingType();
      if (!(adaptingType instanceof ClassType)) {
        return declaration;
      }
      else {
        ClassDeclaration adaptingDeclaration = ((ClassType) adaptingType).getDeclaration();
View Full Code Here

Examples of org.codehaus.enunciate.contract.jaxb.adapters.AdapterType

      return null;
    }
    else {
      TYPE_STACK.get().push(declaration.getQualifiedName());
      try {
        AdapterType adapterType = AdapterUtil.findAdapterType(declaration);
        if (adapterType != null) {
          return findMapType(adapterType.getAdaptingType());
        }
        else {
          MapType mapType = null;
          Collection<InterfaceType> superInterfaces = declaredType.getSuperinterfaces();
          for (InterfaceType superInterface : superInterfaces) {
View Full Code Here

Examples of org.codehaus.enunciate.contract.jaxb.adapters.AdapterType

  public void visitEnumType(EnumType enumType) {
  }

  public void visitInterfaceType(InterfaceType interfaceType) {
    AdapterType adapterType = AdapterUtil.findAdapterType(interfaceType.getDeclaration());
    if (adapterType == null) {
      //the interface isn't adapted, check for @XmlTransient and if it's there, narrow it to java.lang.Object.
      //see https://jira.codehaus.org/browse/ENUNCIATE-660
      if (interfaceType.getDeclaration() != null && interfaceType.getDeclaration().getAnnotation(XmlTransient.class) != null) {
        AnnotationProcessorEnvironment env = Context.getCurrentEnvironment();
View Full Code Here

Examples of org.codehaus.enunciate.contract.jaxb.adapters.AdapterType

  public void visitEnumType(EnumType enumType) {
    visitClassType(enumType);
  }

  public void visitInterfaceType(InterfaceType interfaceType) {
    AdapterType adapterType = AdapterUtil.findAdapterType(interfaceType.getDeclaration());
    if (adapterType != null) {
      adapterType.getAdaptingType().accept(this);
    }
    else {
      MapType mapType = MapTypeUtil.findMapType(interfaceType);
      if (mapType != null) {
        setMapXmlType(mapType);
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.