本文整理了Java中org.oasisopen.sca.annotation.Reference
类的一些代码示例,展示了Reference
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reference
类的具体详情如下:
包路径:org.oasisopen.sca.annotation.Reference
类名称:Reference
暂无
代码示例来源:origin: com.carecon.fabric3/fabric3-pojo
public ReflectionFactoryImpl(@Reference InstantiatorFactory instantiatorFactory,
@Reference InjectorFactory injectorFactory,
@Reference LifecycleInvokerFactory lifecycleInvokerFactory,
@Reference ServiceInvokerFactory serviceInvokerFactory,
@Reference ConsumerInvokerFactory consumerInvokerFactory) {
this.instantiatorFactory = instantiatorFactory;
this.injectorFactory = injectorFactory;
this.lifecycleInvokerFactory = lifecycleInvokerFactory;
this.serviceInvokerFactory = serviceInvokerFactory;
this.consumerInvokerFactory = consumerInvokerFactory;
}
代码示例来源:origin: com.carecon.fabric3/fabric3-introspection-java
public void visitConstructorParameter(Reference annotation,
Constructor<?> constructor,
int index,
Class<?> implClass,
InjectingComponentType componentType,
IntrospectionContext context) {
String name = annotation.name();
boolean required = annotation.required();
referenceProcessor.addDefinition(constructor, name, index, required, implClass, componentType, context);
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
public ReferenceInjectable(Reference referenceAnnotation,
ParamType paramType,
Class<?> type,
Type genericType,
Annotation[] annotations,
Member member) {
super(paramType, type, genericType, annotations, member);
this.referenceName = getReferenceName(referenceAnnotation.name(), member);
}
代码示例来源:origin: com.carecon.fabric3/fabric3-introspection-java
public void visitField(Reference annotation, Field field, Class<?> implClass, InjectingComponentType componentType, IntrospectionContext context) {
String name = annotation.name();
boolean required = annotation.required();
referenceProcessor.addDefinition(field, name, required, implClass, componentType, context);
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-wink
public ReferenceInjectable(Reference referenceAnnotation,
ParamType paramType,
Class<?> type,
Type genericType,
Annotation[] annotations,
Member member) {
super(paramType, type, genericType, annotations, member);
this.referenceName = getReferenceName(referenceAnnotation.name(), member);
}
代码示例来源:origin: com.carecon.fabric3/fabric3-java
public AbstractPojoImplementationProcessor(@Reference JavaContractProcessor contractProcessor,
@Reference JavaImplementationIntrospector introspector,
@Reference IntrospectionHelper helper) {
this.contractProcessor = contractProcessor;
this.introspector = introspector;
this.helper = helper;
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-introspection-java
public void visitMethod(Reference annotation,
Method method,
Class<?> implClass,
InjectingComponentType componentType,
IntrospectionContext context) {
String name = helper.getSiteName(method, annotation.name());
Type type = helper.getGenericType(method);
MethodInjectionSite site = new MethodInjectionSite(method, 0);
Annotation[] annotations = method.getAnnotations();
ReferenceDefinition definition = createDefinition(name, annotation.required(), type, implClass, annotations, componentType, context);
componentType.add(definition, site);
}
代码示例来源:origin: com.carecon.fabric3/fabric3-java
public JavaServiceHeuristic(@Reference IntrospectionHelper helper,
@Reference JavaContractProcessor contractProcessor,
@Reference OperationPolicyIntrospector policyIntrospector) {
this.helper = helper;
this.contractProcessor = contractProcessor;
this.policyIntrospector = policyIntrospector;
}
代码示例来源:origin: com.carecon.fabric3/fabric3-jpa-hibernate
/**
* Constructor.
*
* @param emfResolver EntityManagerFactory builder.
*/
public PersistenceUnitWireAttacher(@Reference EntityManagerFactoryResolver emfResolver) {
this.emfResolver = emfResolver;
}
代码示例来源:origin: com.carecon.fabric3/fabric3-java
public JavaSourceWireAttacher(@Reference ComponentManager manager,
@Reference WireProxyService proxyService,
@Reference TransformerRegistry transformerRegistry) {
super(transformerRegistry);
this.manager = manager;
this.proxyService = proxyService;
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-junit
public JUnitImplementationProcessorImpl(@Reference(name = "classVisitor") ClassVisitor classVisitor,
@Reference(name = "heuristic") HeuristicProcessor heuristic,
@Reference(name = "helper") IntrospectionHelper helper) {
this.classVisitor = classVisitor;
this.heuristic = heuristic;
this.helper = helper;
}
代码示例来源:origin: com.carecon.fabric3/fabric3-system
public SystemHeuristic(@Reference(name = "service") HeuristicProcessor serviceHeuristic,
@Reference(name = "constructor") HeuristicProcessor constructorHeuristic,
@Reference(name = "injection") HeuristicProcessor injectionHeuristic) {
this.serviceHeuristic = serviceHeuristic;
this.constructorHeuristic = constructorHeuristic;
this.injectionHeuristic = injectionHeuristic;
}
代码示例来源:origin: com.carecon.fabric3/fabric3-fabric
public DistributedDomain(@Reference(name = "store") MetaDataStore metaDataStore,
@Reference(name = "logicalComponentManager") LogicalComponentManager logicalComponentManager,
@Reference Generator generator,
@Reference LogicalModelInstantiator logicalModelInstantiator,
@Reference Deployer deployer,
@Reference Collector collector,
@Reference ContributionHelper contributionHelper,
@Reference HostInfo info) {
super(metaDataStore, logicalComponentManager, generator, logicalModelInstantiator, deployer, collector, contributionHelper, info);
}
代码示例来源:origin: com.carecon.fabric3/fabric3-system
public SystemComponentBuilder(@Reference ScopeRegistry scopeRegistry,
@Reference ImplementationManagerFactoryBuilder factoryBuilder,
@Reference ClassLoaderRegistry classLoaderRegistry,
@Reference PropertySupplierBuilder propertyBuilder,
@Reference ManagementService managementService,
@Reference IntrospectionHelper helper,
@Reference HostInfo info) {
super(propertyBuilder, managementService, helper, info);
this.scopeRegistry = scopeRegistry;
this.factoryBuilder = factoryBuilder;
}
代码示例来源:origin: com.carecon.fabric3/fabric3-monitor
/**
* Allows the default extension to overridden.
*
* @param extension the overriding extension
*/
@Reference(required = false)
public void setExtension(MonitorProxyServiceExtension extension) {
this.extension = extension;
}
代码示例来源:origin: org.fabric3/fabric3-fabric
public DistributedDomain(@Reference(name = "store") MetaDataStore metaDataStore,
@Reference(name = "logicalComponentManager") LogicalComponentManager logicalComponentManager,
@Reference Generator generator,
@Reference LogicalModelInstantiator logicalModelInstantiator,
@Reference Deployer deployer,
@Reference Collector collector,
@Reference ContributionHelper contributionHelper,
@Reference HostInfo info) {
super(metaDataStore, logicalComponentManager, generator, logicalModelInstantiator, deployer, collector, contributionHelper, info);
}
代码示例来源:origin: org.fabric3/fabric3-policy
public InteractionPolicyResolverImpl(@Reference PolicyRegistry policyRegistry,
@Reference LogicalComponentManager lcm,
@Reference PolicyEvaluator policyEvaluator) {
super(policyRegistry, lcm, policyEvaluator);
}
代码示例来源:origin: com.carecon.fabric3/fabric3-web
public WebComponentBuilder(@Reference WireProxyService wireProxyService,
@Reference ChannelProxyService channelProxyService,
@Reference WebApplicationActivator activator,
@Reference InjectorFactory injectorFactory,
@Reference HostInfo info) {
this.wireProxyService = wireProxyService;
this.channelProxyService = channelProxyService;
this.activator = activator;
this.injectorFactory = injectorFactory;
this.info = info;
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-ftp-server
/**
* Sets the work scheduler for task execution.
*
* @param executorService the scheduler
*/
@Reference
public void setWorkScheduler(ExecutorService executorService) {
this.executorService = executorService;
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-ftp-server
/**
* Injects the passive connection service.
*
* @param passiveConnectionService Passive connection service.
*/
@Reference
public void setPassivePortService(PassiveConnectionService passiveConnectionService) {
this.passiveConnectionService = passiveConnectionService;
}
内容来源于网络,如有侵权,请联系作者删除!