Examples of scope()


Examples of aQute.bnd.osgi.Descriptors.TypeRef.scope()

        refdef.service = analyzer.getTypeRef((String) refAnnotation.get("service")).getFQN();
        refdef.cardinality = ref.cardinality();
        refdef.policy = ref.policy();
        refdef.policyOption = ref.policyOption();
        refdef.target = ref.target();
        refdef.scope = ref.scope();
        component.references.put(refdef.name, refdef);
      }
    }

  }
View Full Code Here

Examples of com.astamuse.asta4d.data.annotation.ContextData.scope()

                                "Only one parameter is allowed on a method declared with ContextData annoataion.(%s:%s)", cls.getName(),
                                mi.name);
                        throw new DataOperationException(msg);
                    }
                }
                mi.scope = cd.scope();

                if (isGet) {
                    // only if the reverse value is explicitly set to true and
                    // the scope is contained in the allowing reverse injection
                    // list
View Full Code Here

Examples of com.caucho.config.inject.BeanBuilder.scope()

    }

    // server/12dt
    // for backward compatibility <resource> is always ApplicationScoped
    // factory.scope(ApplicationScoped.class);
    factory.scope(Singleton.class);

    if (_object != null)
      beanManager.addBean(factory.singleton(_object));
    else
      beanManager.addBean(factory.bean());
View Full Code Here

Examples of com.caucho.config.inject.BeanFactory.scope()

      factory.binding(Names.create(name));
    }

    // server/12dt
    // for backward compatibility <resource> is always ApplicationScoped
    factory.scope(ApplicationScoped.class);

    if (_object != null)
      beanManager.addBean(factory.singleton(_object));
    else
      beanManager.addBean(factory.bean());
View Full Code Here

Examples of com.dtolabs.rundeck.plugins.util.PropertyBuilder.scope()

        if (null != annotation.defaultValue() && !"".equals(annotation.defaultValue())) {
            pbuild.defaultValue(annotation.defaultValue());
        }
        pbuild.required(annotation.required());

        pbuild.scope(annotation.scope());

        return pbuild.build();
    }

    private static final List<PropertyScope> instanceScopes = Arrays.asList(PropertyScope.Instance,
View Full Code Here

Examples of com.google.inject.Scope.scope()

    Scope scope = scoping.getScopeInstance();

    try {
      SingletonScope.singletonCreationPerRootInjectorLock.set(injector.state.singletonCreationLock());
      Provider<T> scoped
          = scope.scope(key, new ProviderToInternalFactoryAdapter<T>(injector, creator));
      return new InternalFactoryToProviderAdapter<T>(scoped, source);
    } finally {
      SingletonScope.singletonCreationPerRootInjectorLock.set(null);
    }
  }
View Full Code Here

Examples of com.sun.tools.internal.xjc.generator.annotation.spec.XmlElementDeclWriter.scope()

            .append("}");

        XmlElementDeclWriter xemw = m.annotate2(XmlElementDeclWriter.class);
        xemw.namespace(namespaceURI).name(localPart);
        if(scope!=null)
            xemw.scope(scope);

        if(ei.getSubstitutionHead()!=null) {
            QName n = ei.getSubstitutionHead().getElementName();
            xemw.substitutionHeadNamespace(n.getNamespaceURI());
            xemw.substitutionHeadName(n.getLocalPart());
View Full Code Here

Examples of com.sun.tools.xjc.generator.annotation.spec.XmlElementDeclWriter.scope()

            .append("}");

        XmlElementDeclWriter xemw = m.annotate2(XmlElementDeclWriter.class);
        xemw.namespace(namespaceURI).name(localPart);
        if(scope!=null)
            xemw.scope(scope);

        if(ei.getSubstitutionHead()!=null) {
            QName n = ei.getSubstitutionHead().getElementName();
            xemw.substitutionHeadNamespace(n.getNamespaceURI());
            xemw.substitutionHeadName(n.getLocalPart());
View Full Code Here

Examples of javax.xml.bind.annotation.XmlElementDecl.scope()

    private boolean checkObjectFactoryNamespaces(Class<?> clz) {
        for (Method meth : clz.getMethods()) {
            XmlElementDecl decl = meth.getAnnotation(XmlElementDecl.class);
            if (decl != null
                && XmlElementDecl.GLOBAL.class.equals(decl.scope())
                && StringUtils.isEmpty(decl.namespace())) {
                return true;
            }
        }
View Full Code Here

Examples of javax.xml.bind.annotation.XmlElementDecl.scope()

                        // there was no xml-element-decl for this method in XML,
                        // so use the annotation
                        XmlElementDecl elementDecl = (XmlElementDecl) helper.getAnnotation(next, XmlElementDecl.class);
                        url = elementDecl.namespace();
                        localName = elementDecl.name();
                        scopeClass = elementDecl.scope();
                        if (!elementDecl.substitutionHeadName().equals(EMPTY_STRING)) {
                            String subHeadLocal = elementDecl.substitutionHeadName();
                            String subHeadNamespace = elementDecl.substitutionHeadNamespace();
                            if (subHeadNamespace.equals(XMLProcessor.DEFAULT)) {
                                subHeadNamespace = packageInfo.getNamespace();
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.