org.jboss.beans.metadata.api.annotations.Inject类的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(88)

本文整理了Java中org.jboss.beans.metadata.api.annotations.Inject类的一些代码示例,展示了Inject类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Inject类的具体详情如下:
包路径:org.jboss.beans.metadata.api.annotations.Inject
类名称:Inject

Inject介绍

暂无

代码示例

代码示例来源:origin: org.jboss.ejb3/jboss-ejb3-core

@Inject
public void setMessageDestinationReferenceResolver(MessageDestinationReferenceResolver resolver)
{
 this.messageDestinationReferenceResolver = resolver;
}

代码示例来源:origin: org.jboss.microcontainer/jboss-kernel

/**
* Create injection value meta data.
*
* @param annotation the annotation
* @return injection value meta data
*/
static ValueMetaData createValueMetaData(Inject annotation)
{
 AbstractInjectionValueMetaData injection = new AbstractInjectionValueMetaData();
 if (isAttributePresent(annotation.bean()))
   injection.setValue(annotation.bean());
 if (isAttributePresent(annotation.property()))
   injection.setProperty(annotation.property());
 if (isAttributePresent(annotation.dependentState()))
   injection.setDependentState(new ControllerState(annotation.dependentState()));
 if (isAttributePresent(annotation.whenRequired()))
   injection.setWhenRequiredState(new ControllerState(annotation.whenRequired()));
 if (isAttributePresent(annotation.search()))
   injection.setSearch(org.jboss.dependency.plugins.graph.Search.getInstance(annotation.search()));
 injection.setInjectionOption(annotation.option());
 injection.setInjectionType(annotation.type());
 if (FromContext.NOOP.equals(annotation.fromContext()) == false)
   injection.setFromContext(annotation.fromContext());
 return injection;
}

代码示例来源:origin: org.jboss.ejb3/jboss-ejb3-core

@Inject
public void setPersistenceUnitDependencyResolver(PersistenceUnitDependencyResolver resolver)
{
 this.persistenceUnitDependencyResolver = resolver;
}

代码示例来源:origin: org.jboss.jbossas/jboss-as-ejb3

@Inject
public void setMessageDestinationReferenceResolver(MessageDestinationReferenceResolver resolver)
{
 this.messageDestinationReferenceResolver = resolver;   
}

代码示例来源:origin: org.jboss.ejb3.heks/jboss-ejb3-heks

@Inject
  public void setKernel(Kernel kernel)
  {
   this.kernel = kernel;
  }
}

代码示例来源:origin: org.jboss.microcontainer/jboss-reliance-identity

/**
* Set the configuration.
*
* @param configuration the configuration
*/
@Inject
public void setConfiguration(Configuration configuration)
{
 this.configuration = configuration;
}

代码示例来源:origin: org.jboss.ejb3/jboss-ejb3-core

@Inject(bean = "org.jboss.ejb3.async.AsyncInvocationsMap")
  public void setCurrentAsyncInvocations(final AsyncInvocationMap currentAsyncInvocations)
  {
   this.currentAsyncInvocations = currentAsyncInvocations;
  }
}

代码示例来源:origin: org.jboss.ejb3/jboss-ejb3-core

@Inject
public void setCachedConnectionManager(ComponentStack ccm)
{
 this.cachedConnectionManager = ccm;
}

代码示例来源:origin: org.jboss.jbossas/jboss-as-ejb3

@Inject
public void setPersistenceUnitDependencyResolver(PersistenceUnitDependencyResolver resolver)
{
 this.persistenceUnitDependencyResolver = resolver;
}

代码示例来源:origin: org.jboss.jbossas/jboss-as-connector

@Inject
public void setJavaEEComponentInformer(JavaEEComponentInformer informer)
{
 this.informer = informer;
}

代码示例来源:origin: org.jboss.jbossas/jboss-as-connector

@Inject
public void setJavaEEComponentInformer(JavaEEComponentInformer informer)
{
 this.informer = informer;
}

代码示例来源:origin: org.jboss.jbossas/weld-int-ejb

@Inject(bean = KernelConstants.KERNEL_CONTROLLER_NAME)
public void setController(KernelController controller)
{
 this.controller = controller;
}

代码示例来源:origin: org.jboss.injection/jboss-injection-switchboard-deployer

/**
* Set the environment processor
*
* @param environmentProcessor The environment processor
*/
@Inject
public void setEnvironmentProcessor(final EnvironmentProcessor<DeploymentUnit> environmentProcessor)
{
 this.environmentProcessor = environmentProcessor;
}

代码示例来源:origin: org.jboss.managed.beans/managed-beans-mc-int

@Inject
public void setJavaEEComponentInformer(JavaEEComponentInformer componentInformer)
{
 this.javaeeComponentInformer = componentInformer;
}

代码示例来源:origin: org.jboss.jbossas/jboss-as-server

@Inject
public void setPersistenceUnitDependencyResolver(PersistenceUnitDependencyResolver resolver)
{
 this.persistenceUnitDependencyResolver = resolver;
}

代码示例来源:origin: org.jboss.jbossas/jboss-as-server

@Inject
public void setPersistenceUnitDependencyResolver(PersistenceUnitDependencyResolver resolver)
{
 this.persistenceUnitDependencyResolver = resolver;
}

代码示例来源:origin: org.jboss.jbossas/jboss-as-tomcat

@Inject
  public void setJavaEEComponentInformer(JavaEEComponentInformer componentInformer)
  {
   this.componentInformer = componentInformer;
  }
}

代码示例来源:origin: org.jboss.ejb3/jboss-ejb3-endpoint-deployer

@Inject
public void setEJBIdentifier(EJBIdentifier identifier)
{
 this.identifier = identifier;
}

代码示例来源:origin: org.jboss.weld.integration/weld-jboss-int-jboss-ejb

@Inject
public void setResolver(EjbReferenceResolver resolver)
{
 this.resolver = resolver;
}

代码示例来源:origin: org.jboss.weld.integration/weld-jboss-int-jboss-ejb

@Inject(bean = KernelConstants.KERNEL_CONTROLLER_NAME)
public void setController(KernelController controller)
{
 this.controller = controller;
}

相关文章

Inject类方法