本文整理汇总了Java中javax.enterprise.inject.Specializes类的典型用法代码示例。如果您正苦于以下问题:Java Specializes类的具体用法?Java Specializes怎么用?Java Specializes使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Specializes类属于javax.enterprise.inject包,在下文中一共展示了Specializes类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1:
import javax.enterprise.inject.Specializes; //导入依赖的package包/类
@Override
@Specializes
@Produces
@Omakase
public S3Client getS3Client() {
return new MockS3Client();
}
示例2: getGlacierClient
import javax.enterprise.inject.Specializes; //导入依赖的package包/类
@Override
@Specializes
@Produces
@Omakase
public GlacierClient getGlacierClient() {
return new MockGlacierClient();
}
示例3: produceExecutorService
import javax.enterprise.inject.Specializes; //导入依赖的package包/类
@Produces
@ApplicationScoped
@Managed
@Specializes
@Override
public ExecutorService produceExecutorService() {
return new WorkspaceExecutorService(workspaceNameResolver,
this.getManagedExecutorService());
}