Java 类javax.enterprise.inject.Specializes 实例源码

项目:omakase    文件:MockS3ClientProducer.java   
@Override
@Specializes
@Produces
@Omakase
public S3Client getS3Client() {
    return new MockS3Client();
}
项目:omakase    文件:MockGlacierClientProducer.java   
@Override
@Specializes
@Produces
@Omakase
public GlacierClient getGlacierClient() {
    return new MockGlacierClient();
}
项目:appformer    文件:WorkspaceExecutorServiceProducer.java   
@Produces
@ApplicationScoped
@Managed
@Specializes
@Override
public ExecutorService produceExecutorService() {
    return new WorkspaceExecutorService(workspaceNameResolver,
                                        this.getManagedExecutorService());
}