diff options
Diffstat (limited to 'branches/sca-java-1.x/modules/contribution-jee/src/main')
3 files changed, 39 insertions, 1 deletions
diff --git a/branches/sca-java-1.x/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/JspReferenceTagInfo.java b/branches/sca-java-1.x/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/JspReferenceTagInfo.java new file mode 100644 index 0000000000..e36aea2790 --- /dev/null +++ b/branches/sca-java-1.x/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/JspReferenceTagInfo.java @@ -0,0 +1,30 @@ +/* + * 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 + * 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. + */ +package org.apache.tuscany.sca.contribution.jee; + + +/** + * @version $Rev$ $Date$ + * + * Information on SCA reference tags in JSP pages. + */ +public class JspReferenceTagInfo { + public String name; + public Class<?> type; +} diff --git a/branches/sca-java-1.x/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/WebModuleInfo.java b/branches/sca-java-1.x/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/WebModuleInfo.java index a0bc74fc2d..702a2728b1 100644 --- a/branches/sca-java-1.x/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/WebModuleInfo.java +++ b/branches/sca-java-1.x/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/WebModuleInfo.java @@ -42,5 +42,6 @@ public interface WebModuleInfo { Collection<Class<?>> getListenerClasses(); Collection<Class<?>> getFilterClasses(); Collection<Class<?>> getJSFClasses(); - //TODO: JSP tags? + + Collection<JspReferenceTagInfo> getJspReferenceTags(); } diff --git a/branches/sca-java-1.x/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/WebModuleInfoImpl.java b/branches/sca-java-1.x/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/WebModuleInfoImpl.java index 9e9a6e3de9..45d6290a06 100644 --- a/branches/sca-java-1.x/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/WebModuleInfoImpl.java +++ b/branches/sca-java-1.x/modules/contribution-jee/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/WebModuleInfoImpl.java @@ -26,6 +26,7 @@ import java.util.Map; import org.apache.tuscany.sca.contribution.jee.EjbReferenceInfo; import org.apache.tuscany.sca.contribution.jee.EnvEntryInfo; +import org.apache.tuscany.sca.contribution.jee.JspReferenceTagInfo; import org.apache.tuscany.sca.contribution.jee.WebModuleInfo; public class WebModuleInfoImpl implements WebModuleInfo { @@ -38,6 +39,8 @@ public class WebModuleInfoImpl implements WebModuleInfo { private Collection<Class<?>> filterClasses = new ArrayList<Class<?>>(); private Collection<Class<?>> jsfClasses = new ArrayList<Class<?>>(); + private Collection<JspReferenceTagInfo> jspReferenceTags = new ArrayList<JspReferenceTagInfo>(); + private Map<String, EjbReferenceInfo> ejbReferences = new HashMap<String, EjbReferenceInfo>(); private Map<String, EnvEntryInfo> envEntries = new HashMap<String, EnvEntryInfo>(); @@ -58,6 +61,10 @@ public class WebModuleInfoImpl implements WebModuleInfo { public Collection<Class<?>> getJSFClasses() { return jsfClasses; } + + public Collection<JspReferenceTagInfo> getJspReferenceTags() { + return jspReferenceTags; + } public EjbReferenceInfo getEjbReference(String ejbRefName) { return ejbReferences.get(ejbRefName); |