From a17addafaaf5e342d270d7e4b53520c1fb658466 Mon Sep 17 00:00:00 2001 From: Kelven Yang Date: Thu, 4 Apr 2013 14:16:13 -0700 Subject: [PATCH] CLOUDSTACK-1917: Finalize componentContext.xml/nonComponentContext.xml content organization to be plugin friendly --- client/tomcatconf/applicationContext.xml.in | 199 +++++++++++------ client/tomcatconf/componentContext.xml.in | 196 +++++++++-------- .../tomcatconf/nonossComponentContext.xml.in | 200 ++++++++---------- .../cloud/utils/component/AdapterList.java | 34 +++ 4 files changed, 352 insertions(+), 277 deletions(-) create mode 100644 utils/src/com/cloud/utils/component/AdapterList.java diff --git a/client/tomcatconf/applicationContext.xml.in b/client/tomcatconf/applicationContext.xml.in index 17725f0761c..bd95bb48afb 100644 --- a/client/tomcatconf/applicationContext.xml.in +++ b/client/tomcatconf/applicationContext.xml.in @@ -32,6 +32,12 @@ + + + + + + @@ -568,7 +574,53 @@ + --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -630,9 +682,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/client/tomcatconf/componentContext.xml.in b/client/tomcatconf/componentContext.xml.in index 2a4a29f34cd..48a6d75df20 100644 --- a/client/tomcatconf/componentContext.xml.in +++ b/client/tomcatconf/componentContext.xml.in @@ -30,74 +30,49 @@ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> - + + - - - + + + + + - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -108,12 +83,13 @@ --> - + - - + + + @@ -121,7 +97,10 @@ - + + + + @@ -130,13 +109,9 @@ - - - - - - - + + + @@ -145,13 +120,60 @@ - + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -164,7 +186,10 @@ - + + + + @@ -177,37 +202,6 @@ --> - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/client/tomcatconf/nonossComponentContext.xml.in b/client/tomcatconf/nonossComponentContext.xml.in index 13004c305fd..c81f100cf5b 100644 --- a/client/tomcatconf/nonossComponentContext.xml.in +++ b/client/tomcatconf/nonossComponentContext.xml.in @@ -32,9 +32,16 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd"> - + - - + + + + + - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -197,12 +170,13 @@ --> - + - - + + + @@ -211,7 +185,10 @@ - + + + + @@ -221,26 +198,71 @@ - - - - - - - + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -253,44 +275,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -309,5 +297,5 @@ - + diff --git a/utils/src/com/cloud/utils/component/AdapterList.java b/utils/src/com/cloud/utils/component/AdapterList.java new file mode 100644 index 00000000000..ae8671772f2 --- /dev/null +++ b/utils/src/com/cloud/utils/component/AdapterList.java @@ -0,0 +1,34 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// 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. +package com.cloud.utils.component; + +import java.util.List; + +public class AdapterList { + protected List adapters; + + public AdapterList() { + } + + public List getAdapters() { + return adapters; + } + + public void setAdapters(List adapters) { + this.adapters = adapters; + } +}