root / extensions / enterprise / src / main / java / org / jclouds / enterprise / config / EnterpriseConfigurationModule.java @ 35e7942d
History | View | Annotate | Download (1.6 kB)
1 | 35e7942d | Michael Mayo | /**
|
---|---|---|---|
2 | 35e7942d | Michael Mayo | *
|
3 | 35e7942d | Michael Mayo | * Copyright (C) 2009 Cloud Conscious, LLC. <info@cloudconscious.com>
|
4 | 35e7942d | Michael Mayo | *
|
5 | 35e7942d | Michael Mayo | * ====================================================================
|
6 | 35e7942d | Michael Mayo | * Licensed under the Apache License, Version 2.0 (the "License");
|
7 | 35e7942d | Michael Mayo | * you may not use this file except in compliance with the License.
|
8 | 35e7942d | Michael Mayo | * You may obtain a copy of the License at
|
9 | 35e7942d | Michael Mayo | *
|
10 | 35e7942d | Michael Mayo | * http://www.apache.org/licenses/LICENSE-2.0
|
11 | 35e7942d | Michael Mayo | *
|
12 | 35e7942d | Michael Mayo | * Unless required by applicable law or agreed to in writing, software
|
13 | 35e7942d | Michael Mayo | * distributed under the License is distributed on an "AS IS" BASIS,
|
14 | 35e7942d | Michael Mayo | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15 | 35e7942d | Michael Mayo | * See the License for the specific language governing permissions and
|
16 | 35e7942d | Michael Mayo | * limitations under the License.
|
17 | 35e7942d | Michael Mayo | * ====================================================================
|
18 | 35e7942d | Michael Mayo | */
|
19 | 35e7942d | Michael Mayo | package org.jclouds.enterprise.config; |
20 | 35e7942d | Michael Mayo | |
21 | 35e7942d | Michael Mayo | import java.util.concurrent.ExecutorService; |
22 | 35e7942d | Michael Mayo | |
23 | 35e7942d | Michael Mayo | import org.jclouds.concurrent.config.ConfiguresExecutorService; |
24 | 35e7942d | Michael Mayo | import org.jclouds.concurrent.config.ExecutorServiceModule; |
25 | 35e7942d | Michael Mayo | import org.jclouds.date.joda.config.JodaDateServiceModule; |
26 | 35e7942d | Michael Mayo | import org.jclouds.encryption.bouncycastle.config.BouncyCastleEncryptionServiceModule; |
27 | 35e7942d | Michael Mayo | |
28 | 35e7942d | Michael Mayo | /**
|
29 | 35e7942d | Michael Mayo | * Configures Enterprise-grade components
|
30 | 35e7942d | Michael Mayo | *
|
31 | 35e7942d | Michael Mayo | * @author Adrian Cole
|
32 | 35e7942d | Michael Mayo | *
|
33 | 35e7942d | Michael Mayo | */
|
34 | 35e7942d | Michael Mayo | @ConfiguresExecutorService
|
35 | 35e7942d | Michael Mayo | public class EnterpriseConfigurationModule extends ExecutorServiceModule { |
36 | 35e7942d | Michael Mayo | |
37 | 35e7942d | Michael Mayo | public EnterpriseConfigurationModule(ExecutorService userThreads, ExecutorService ioThreads) { |
38 | 35e7942d | Michael Mayo | super(userThreads, ioThreads);
|
39 | 35e7942d | Michael Mayo | } |
40 | 35e7942d | Michael Mayo | |
41 | 35e7942d | Michael Mayo | public EnterpriseConfigurationModule() {
|
42 | 35e7942d | Michael Mayo | super();
|
43 | 35e7942d | Michael Mayo | } |
44 | 35e7942d | Michael Mayo | |
45 | 35e7942d | Michael Mayo | @Override
|
46 | 35e7942d | Michael Mayo | protected void configure() { |
47 | 35e7942d | Michael Mayo | install(new BouncyCastleEncryptionServiceModule());
|
48 | 35e7942d | Michael Mayo | install(new JodaDateServiceModule());
|
49 | 35e7942d | Michael Mayo | } |
50 | 35e7942d | Michael Mayo | |
51 | 35e7942d | Michael Mayo | } |