Merge "Install tools/libs from doc hub image"
[aaf/authz.git] / misc / env / src / main / java / org / onap / aaf / misc / env / impl / EnvFactory.java
index a882c74..9bf4fdc 100644 (file)
@@ -1,68 +1,68 @@
-/**
- * ============LICENSE_START====================================================
- * org.onap.aaf
- * ===========================================================================
- * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- * ===========================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END====================================================
- *
- */
-
-package org.onap.aaf.misc.env.impl;
-
-import org.onap.aaf.misc.env.EnvJAXB;
-import org.onap.aaf.misc.env.TransCreate;
-import org.onap.aaf.misc.env.TransJAXB;
-
-/**
- * EnvFactory
- * 
- * @author Jonathan
- * 
- */
-public class EnvFactory {
-
-       public static final String SCHEMA_DIR = "env-schema_dir";
-       public static final String DEFAULT_SCHEMA_DIR = "src/main/xsd";
-       static BasicEnv singleton;
-
-       static {
-               singleton = new BasicEnv();
-       }
-       public static BasicEnv singleton() {
-               return singleton;
-       }
-       
-       public static void setSingleton(BasicEnv be) {
-               singleton = be;
-       }
-       
-       public static TransJAXB newTrans() {
-               return new BasicTrans(singleton);
-       }
-
-       public static TransJAXB newTrans(EnvJAXB env) {
-               return new BasicTrans(env);
-       }
-       
-       public static TransCreate<TransJAXB> transCreator() {
-               return new TransCreate<TransJAXB>() {
-                       // @Override
-                       public BasicTrans newTrans() {
-                               return singleton.newTrans();
-                       }
-               };
-       }
-}
-
+/**\r
+ * ============LICENSE_START====================================================\r
+ * org.onap.aaf\r
+ * ===========================================================================\r
+ * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\r
+ * ===========================================================================\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ *      http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ============LICENSE_END====================================================\r
+ *\r
+ */\r
+\r
+package org.onap.aaf.misc.env.impl;\r
+\r
+import org.onap.aaf.misc.env.EnvJAXB;\r
+import org.onap.aaf.misc.env.TransCreate;\r
+import org.onap.aaf.misc.env.TransJAXB;\r
+\r
+/**\r
+ * EnvFactory\r
+ * \r
+ * @author Jonathan\r
+ * \r
+ */\r
+public class EnvFactory {\r
+\r
+       public static final String SCHEMA_DIR = "env-schema_dir";\r
+       public static final String DEFAULT_SCHEMA_DIR = "src/main/xsd";\r
+       static BasicEnv singleton;\r
+\r
+       static {\r
+               singleton = new BasicEnv();\r
+       }\r
+       public static BasicEnv singleton() {\r
+               return singleton;\r
+       }\r
+       \r
+       public static void setSingleton(BasicEnv be) {\r
+               singleton = be;\r
+       }\r
+       \r
+       public static TransJAXB newTrans() {\r
+               return new BasicTrans(singleton);\r
+       }\r
+\r
+       public static TransJAXB newTrans(EnvJAXB env) {\r
+               return new BasicTrans(env);\r
+       }\r
+       \r
+       public static TransCreate<TransJAXB> transCreator() {\r
+               return new TransCreate<TransJAXB>() {\r
+                       // @Override\r
+                       public BasicTrans newTrans() {\r
+                               return singleton.newTrans();\r
+                       }\r
+               };\r
+       }\r
+}\r
+\r