[jboss-cvs] JBossAS SVN: r95105 - in projects/annotations/branches/AnnEnv: core and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Oct 19 07:36:29 EDT 2009
Author: alesj
Date: 2009-10-19 07:36:28 -0400 (Mon, 19 Oct 2009)
New Revision: 95105
Removed:
projects/annotations/branches/AnnEnv/core/build.xml
projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/Annotation.java
projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/AnnotationType.java
projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/ResourceFilter.java
projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/Settings.java
projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/Visibility.java
projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/impl/
projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/javalangreflect/
projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/javassistclasspool/
projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/javassistinputstream/
projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/package.html
projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/util/
projects/annotations/branches/AnnEnv/indexer/build.xml
projects/annotations/branches/AnnEnv/maven/
Log:
Remove impl details.
Deleted: projects/annotations/branches/AnnEnv/core/build.xml
===================================================================
--- projects/annotations/branches/AnnEnv/core/build.xml 2009-10-19 11:20:42 UTC (rev 95104)
+++ projects/annotations/branches/AnnEnv/core/build.xml 2009-10-19 11:36:28 UTC (rev 95105)
@@ -1,325 +0,0 @@
-<!--
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
--->
-<project name="papaki-core"
- default="compile"
- xmlns:ivy="antlib:org.apache.ivy.ant">
-
- <!-- =================================
- Properties
- ================================= -->
- <property name="build.core.dir" value="${build.dir}/core" />
-
- <!-- =================================
- Target: init
- ================================= -->
- <target name="init">
- <mkdir dir="${build.core.dir}" />
- <mkdir dir="${build.core.dir}/impl" />
- </target>
-
- <!-- =================================
- Target: compile
- ================================= -->
- <target name="compile" depends="init">
- <javac srcdir="src/main"
- destdir="${build.core.dir}/impl"
- classpathref="core.lib.path.id"
- debug="${javac.debug}"
- deprecation="${javac.deprecation}"
- optimize="${javac.optimize}">
- <compilerarg value="-Xlint"/>
- </javac>
- </target>
-
- <!-- =================================
- Target: prepare-test
- ================================= -->
- <target name="prepare-test">
- <mkdir dir="${build.core.dir}" />
- <mkdir dir="${build.core.dir}/test" />
-
- <javac srcdir="src/test"
- destdir="${build.core.dir}/test"
- classpathref="test.lib.path.id"
- debug="${javac.debug}"
- deprecation="${javac.deprecation}"
- optimize="${javac.optimize}">
- <compilerarg value="-Xlint"/>
- </javac>
-
- <copy todir="${build.core.dir}/test">
- <fileset dir="src/test/resources"/>
- </copy>
-
- <mkdir dir="${build.core.dir}/testjars" />
-
- <!-- Class based tests -->
- <jar destfile="${build.core.dir}/testjars/classabstract.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/classabstract/**"/>
- <jar destfile="${build.core.dir}/testjars/classconstructor.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/classconstructor/**"/>
- <jar destfile="${build.core.dir}/testjars/classconstructorwithparameter.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/classconstructorwithparameter/**"/>
- <jar destfile="${build.core.dir}/testjars/classconstructorwithparameterannotation.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/classconstructorwithparameterannotation/**"/>
- <jar destfile="${build.core.dir}/testjars/classempty.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/classempty/**"/>
- <jar destfile="${build.core.dir}/testjars/classinterface.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/classinterface/**"/>
- <jar destfile="${build.core.dir}/testjars/classinterfacemethod.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/classinterfacemethod/**"/>
- <jar destfile="${build.core.dir}/testjars/classlevel.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/classlevel/**"/>
- <jar destfile="${build.core.dir}/testjars/classmethod.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/classmethod/**"/>
- <jar destfile="${build.core.dir}/testjars/classmethodwithparameter.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/classmethodwithparameter/**"/>
- <jar destfile="${build.core.dir}/testjars/classmethodwithparameterannotation.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/classmethodwithparameterannotation/**"/>
- <jar destfile="${build.core.dir}/testjars/classfield.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/classfield/**"/>
-
- <!-- Inheritance based tests -->
- <jar destfile="${build.core.dir}/testjars/inheritanceclassabstract.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/inheritanceclassabstract/**"/>
- <jar destfile="${build.core.dir}/testjars/inheritanceclassclass.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/inheritanceclassclass/**"/>
- <jar destfile="${build.core.dir}/testjars/inheritanceclassinterface.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/inheritanceclassinterface/**"/>
- <jar destfile="${build.core.dir}/testjars/inheritanceclassinterfacemethod.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/inheritanceclassinterfacemethod/**"/>
-
- <!-- Interface based tests -->
- <jar destfile="${build.core.dir}/testjars/interfaceempty.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/interfaceempty/**"/>
- <jar destfile="${build.core.dir}/testjars/interfacelevel.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/interfacelevel/**"/>
- <jar destfile="${build.core.dir}/testjars/interfacemethod.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/interfacemethod/**"/>
- <jar destfile="${build.core.dir}/testjars/interfacemethodwithparameter.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/interfacemethodwithparameter/**"/>
- <jar destfile="${build.core.dir}/testjars/interfacemethodwithparameterannotation.jar"
- basedir="${build.core.dir}/test"
- includes="**/common/**, **/interfacemethodwithparameterannotation/**"/>
- </target>
-
- <!-- =================================
- Target: test-indexer
- ================================= -->
- <target name="test-indexer" depends="jars, prepare-test">
- <taskdef name="indexer"
- classname="org.jboss.papaki.indexer.IndexerTask"
- classpathref="core.lib.path.id"/>
-
- <mkdir dir="${reports.dir}"/>
- <mkdir dir="${reports.dir}/indexer"/>
- <mkdir dir="${reports.dir}/indexer/reports"/>
-
- <!-- Class based tests -->
- <indexer input="${build.core.dir}/testjars/classabstract.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/classconstructor.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/classconstructorwithparameter.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/classconstructorwithparameterannotation.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/classempty.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/classinterface.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/classinterfacemethod.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/classlevel.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/classmethod.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/classmethodwithparameter.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/classmethodwithparameterannotation.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/classfield.jar" report="${reports.dir}/indexer/reports"/>
-
- <!-- Inheritance based tests -->
- <indexer input="${build.core.dir}/testjars/inheritanceclassabstract.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/inheritanceclassclass.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/inheritanceclassinterface.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/inheritanceclassinterfacemethod.jar" report="${reports.dir}/indexer/reports"/>
-
- <!-- Interface based tests -->
- <indexer input="${build.core.dir}/testjars/interfaceempty.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/interfacelevel.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/interfacemethod.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/interfacemethodwithparameter.jar" report="${reports.dir}/indexer/reports"/>
- <indexer input="${build.core.dir}/testjars/interfacemethodwithparameterannotation.jar" report="${reports.dir}/indexer/reports"/>
-
- <junit dir="src/test"
- printsummary="${junit.printsummary}"
- haltonerror="${junit.haltonerror}"
- haltonfailure="${junit.haltonfailure}"
- fork="${junit.fork}"
- timeout="${junit.timeout}">
-
- <jvmarg line="${junit.jvm.options}"/>
- <sysproperty key="test.dir" value="${test.dir}"/>
- <sysproperty key="archives.dir" value="${build.core.dir}/testjars"/>
- <sysproperty key="java.util.logging.config.file" value="${build.core.dir}/test/logging.properties"/>
-
- <classpath>
- <pathelement location="${build.core.dir}/test"/>
- <fileset dir="${target.dir}" includes="*.jar"/>
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- </classpath>
-
- <formatter type="plain"/>
- <formatter type="xml"/>
-
- <batchtest todir="${reports.dir}/indexer"
- haltonerror="${junit.batchtest.haltonerror}"
- haltonfailure="${junit.batchtest.haltonfailure}"
- fork="${junit.batchtest.fork}">
-
- <fileset dir="${build.core.dir}/test">
- <include name="**/*TestCase.class"/>
- </fileset>
- </batchtest>
-
- </junit>
- </target>
-
- <!-- =================================
- Target: test
- ================================= -->
- <target name="test" depends="jars, prepare-test">
- <mkdir dir="${reports.dir}"/>
- <mkdir dir="${reports.dir}/core"/>
-
- <junit dir="src/test"
- printsummary="${junit.printsummary}"
- haltonerror="${junit.haltonerror}"
- haltonfailure="${junit.haltonfailure}"
- fork="${junit.fork}"
- timeout="${junit.timeout}">
-
- <jvmarg line="${junit.jvm.options}"/>
- <sysproperty key="test.dir" value="${test.dir}"/>
- <sysproperty key="archives.dir" value="${build.core.dir}/testjars"/>
- <sysproperty key="java.util.logging.config.file" value="${build.core.dir}/test/logging.properties"/>
-
- <classpath>
- <pathelement location="${build.core.dir}/test"/>
- <fileset dir="${target.dir}" includes="*.jar"/>
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- </classpath>
-
- <formatter type="plain"/>
- <formatter type="xml"/>
-
- <batchtest todir="${reports.dir}/core"
- haltonerror="${junit.batchtest.haltonerror}"
- haltonfailure="${junit.batchtest.haltonfailure}"
- fork="${junit.batchtest.fork}">
-
- <fileset dir="${build.core.dir}/test">
- <include name="**/*TestCase.class"/>
- </fileset>
- </batchtest>
-
- </junit>
-
- </target>
-
- <!-- =================================
- Target: one-test
- ================================= -->
- <target name="one-test" depends="jars, prepare-test">
- <mkdir dir="${reports.dir}"/>
- <mkdir dir="${reports.dir}/core"/>
-
- <junit dir="src/test"
- printsummary="${junit.printsummary}"
- haltonerror="${junit.haltonerror}"
- haltonfailure="${junit.haltonfailure}"
- fork="${junit.fork}"
- timeout="${junit.timeout}">
-
- <jvmarg line="${junit.jvm.options}"/>
- <sysproperty key="test.dir" value="${test.dir}"/>
- <sysproperty key="archives.dir" value="${build.core.dir}/testjars"/>
- <sysproperty key="java.util.logging.config.file" value="${build.core.dir}/test/logging.properties"/>
-
- <classpath>
- <pathelement location="${build.core.dir}/test"/>
- <fileset dir="${target.dir}" includes="*.jar"/>
- <fileset dir="${lib.dir}/test" includes="*.jar" />
- </classpath>
-
- <formatter type="plain"/>
- <formatter type="xml"/>
-
- <test todir="${reports.dir}/core" name="${test}"
- haltonerror="${junit.batchtest.haltonerror}"
- haltonfailure="${junit.batchtest.haltonfailure}"
- fork="${junit.batchtest.fork}"/>
- </junit>
-
- </target>
-
- <!-- =================================
- Target: jars
- ================================= -->
- <target name="jars" depends="compile">
- <jar destfile="${target.dir}/papaki-core.jar"
- manifest="src/main/resources/core-manifest.mf"
- basedir="${build.core.dir}/impl"
- excludes="**/*.java"/>
- </target>
-
- <!-- =================================
- Target: docs
- ================================= -->
- <target name="docs">
- <mkdir dir="${target.dir}/docs/core"/>
- <javadoc packagenames="org.*"
- sourcepath="src/main/java"
- destdir="${target.dir}/docs/core"
- author="true"
- version="true"
- windowtitle="Papaki"
- doctitle="Papaki"
- use="true"
- classpathref="core.lib.path.id"
- bottom="Copyright © 2009 Red Hat Middleware LLC (http://www.jboss.com/)">
- <link offline="true" href="http://java.sun.com/j2se/5/docs/api/" packagelistLoc="${java.home}/../docs/api"/>
- </javadoc>
- </target>
-
-</project>
Deleted: projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/Annotation.java
===================================================================
--- projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/Annotation.java 2009-10-19 11:20:42 UTC (rev 95104)
+++ projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/Annotation.java 2009-10-19 11:36:28 UTC (rev 95105)
@@ -1,258 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008-2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.papaki;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import java.util.logging.Logger;
-
-/**
- * An annotation
- * @author <a href="mailto:jesper.pedersen at jboss.org">Jesper Pedersen</a>
- */
-public class Annotation
-{
- private static Logger log = Logger.getLogger(Annotation.class.getName());
-
- private String annotationClassName;
- private Object annotation;
- private AnnotationType type;
- private String className;
- private String memberName;
- private List<String> parameterTypes;
- private int parameterIndex;
- private Integer hashCode;
-
- /**
- * Constructor
- * @param annotationClassName The fully qualified class name for the annotation
- * @param annotation The annotation instance
- * @param type The type of the annotation
- * @param className The fully qualified class name of the class where the annotation is located
- * @param memberName The name of the field or method; <code>null</code> if class or constructor
- * @param parameterTypes The fully qualified class names of all parameters if any otherwise <code>null</code>
- * @param parameterIndex The parameter index for parameter annotations; <code>-1</code> if not needed
- */
- public Annotation(String annotationClassName, Object annotation, AnnotationType type,
- String className, String memberName, String[] parameterTypes, int parameterIndex)
- {
- if (annotationClassName == null)
- throw new IllegalArgumentException("AnnotationClassName is null");
-
- if (annotation == null)
- throw new IllegalArgumentException("Annotation is null");
-
- if (type == null)
- throw new IllegalArgumentException("Type is null");
-
- if (className == null)
- throw new IllegalArgumentException("ClassName is null");
-
- this.annotationClassName = annotationClassName;
- this.annotation = annotation;
- this.type = type;
- this.className = className;
- this.memberName = memberName;
- this.parameterTypes = null;
- this.parameterIndex = parameterIndex;
-
- if (parameterTypes != null)
- {
- this.parameterTypes = new ArrayList<String>(parameterTypes.length);
- for (String s : parameterTypes)
- {
- this.parameterTypes.add(s);
- }
- }
- }
-
- /**
- * Get the fully qualified class name of the annotation
- * @return The class name
- */
- public String getAnnotationClassName()
- {
- return annotationClassName;
- }
-
- /**
- * Get the annotation instance
- * @return The instance
- */
- public Object getAnnotation()
- {
- return annotation;
- }
-
- /**
- * Get the annotation type
- * @return The type
- */
- public AnnotationType getType()
- {
- return type;
- }
-
- /**
- * Get the fully qualified class name where the annotation is located
- * @return The class name
- */
- public String getClassName()
- {
- return className;
- }
-
- /**
- * Get the member name (field or method name); <code>null</code> if class or constructor
- * @return The member name
- */
- public String getMemberName()
- {
- return memberName;
- }
-
- /**
- * Get the fully qualified class names of all parameters; <code>null</code> if there are no parameters
- * @return The parameter types
- */
- public String[] getParameterTypes()
- {
- if (parameterTypes == null)
- return null;
-
- return parameterTypes.toArray(new String[parameterTypes.size()]);
- }
-
- /**
- * Get the parameter index for parameter annotation
- * @return The index
- */
- public int getParameterIndex()
- {
- return parameterIndex;
- }
-
- /**
- * Hash code of the object
- * @return The hash code
- */
- private int calculateHashCode()
- {
- int result = 7;
-
- result += 7 * annotationClassName.hashCode();
- result += 7 * annotation.getClass().getName().hashCode();
- result += 7 * type.hashCode();
- result += 7 * className.hashCode();
- result += 7 * (memberName != null ? memberName.hashCode() : 1);
- result += 7 * (parameterTypes != null ? parameterTypes.hashCode() : 1);
- result += 7 * parameterIndex;
-
- return result;
- }
-
- /**
- * Hash code of the object
- * @return The hash code
- */
- public int hashCode()
- {
- if (hashCode == null)
- hashCode = Integer.valueOf(calculateHashCode());
-
- return hashCode.intValue();
- }
-
- /**
- * Equals
- * @param other The other object
- * @return True if equal; otherwise false
- */
- public boolean equals(Object other)
- {
- if (other == null || !(other instanceof Annotation))
- return false;
-
- Annotation a = (Annotation)other;
-
- boolean result = true;
-
- result = annotationClassName.equals(a.getAnnotationClassName());
-
- if (result)
- result = type.equals(a.getType());
-
- if (result)
- result = className.equals(a.getClassName());
-
- if (result)
- {
- if (memberName == null)
- {
- result = a.getMemberName() == null;
- }
- else
- {
- result = memberName.equals(a.getMemberName());
- }
- }
-
- if (result)
- {
- if (parameterTypes == null)
- {
- result = a.getParameterTypes() == null;
- }
- else
- {
- result = Arrays.equals(getParameterTypes(), a.getParameterTypes());
- }
- }
-
- if (result)
- result = parameterIndex == a.getParameterIndex();
-
- return result;
- }
-
- /**
- * String representation
- * @return The representation
- */
- public String toString()
- {
- StringBuilder sb = new StringBuilder();
- sb = sb.append(getClass().getName());
- sb = sb.append("[");
- sb = sb.append("AnnotationClass=" + annotationClassName + ",");
- sb = sb.append("Annotation=" + annotation + ",");
- sb = sb.append("Type=" + type + ",");
- sb = sb.append("Class=" + className + ",");
- sb = sb.append("Member=" + memberName + ",");
- sb = sb.append("Parameters=" + parameterTypes);
- sb = sb.append("ParameterIndex=" + parameterIndex);
- sb = sb.append("]");
- return sb.toString();
- }
-}
Deleted: projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/AnnotationType.java
===================================================================
--- projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/AnnotationType.java 2009-10-19 11:20:42 UTC (rev 95104)
+++ projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/AnnotationType.java 2009-10-19 11:36:28 UTC (rev 95105)
@@ -1,45 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008-2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.papaki;
-
-/**
- * The type of an annotation
- * @author <a href="mailto:jesper.pedersen at jboss.org">Jesper Pedersen</a>
- */
-public enum AnnotationType
-{
- /** Class level */
- CLASS,
-
- /** Field level */
- FIELD,
-
- /** Constructor level */
- CONSTRUCTOR,
-
- /** Method level */
- METHOD,
-
- /** Parameter level */
- PARAMETER
-}
Deleted: projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/ResourceFilter.java
===================================================================
--- projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/ResourceFilter.java 2009-10-19 11:20:42 UTC (rev 95104)
+++ projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/ResourceFilter.java 2009-10-19 11:36:28 UTC (rev 95105)
@@ -1,41 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008-2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.papaki;
-
-/**
- * Resource filter.
- *
- * TODO - use it :-)
- *
- * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
- */
-public interface ResourceFilter
-{
- /**
- * Do we accept this resource.
- *
- * @param resource the resource
- * @return true if the resource is accepted, false otherwise
- */
- boolean accepts(String resource);
-}
Deleted: projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/Settings.java
===================================================================
--- projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/Settings.java 2009-10-19 11:20:42 UTC (rev 95104)
+++ projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/Settings.java 2009-10-19 11:36:28 UTC (rev 95105)
@@ -1,114 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008-2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.papaki;
-
-import java.io.Serializable;
-
-/**
- * Represents the settings for an annotation repository
- * @author <a href="mailto:jesper.pedersen at jboss.org">Jesper Pedersen</a>
- */
-public interface Settings extends Serializable
-{
- /**
- * Is the class level enabled ?
- * @return True if enabled; otherwise false
- */
- public boolean isClassLevel();
-
- /**
- * Get the class visibility setting
- * @return The visibility
- */
- public Visibility getClassVisibility();
-
- /**
- * Is the field level enabled ?
- * @return True if enabled; otherwise false
- */
- public boolean isFieldLevel();
-
- /**
- * Get the field visibility setting
- * @return The visibility
- */
- public Visibility getFieldVisibility();
-
- /**
- * Is the constructor level enabled ?
- * @return True if enabled; otherwise false
- */
- public boolean isConstructorLevel();
-
- /**
- * Get the constructor visibility setting
- * @return The visibility
- */
- public Visibility getConstructorVisibility();
-
- /**
- * Is the method level enabled ?
- * @return True if enabled; otherwise false
- */
- public boolean isMethodLevel();
-
- /**
- * Get the method visibility setting
- * @return The visibility
- */
- public Visibility getMethodVisibility();
-
- /**
- * Is the parameter level enabled ?
- * @return True if enabled; otherwise false
- */
- public boolean isParameterLevel();
-
- /**
- * Fold annotations on to classes that extends/implements the class
- * where the annotation is located - default: true
- * @param fold True if folding should be performed; otherwise false
- * @return The settings
- */
- public Settings foldAnnotations(boolean fold);
-
- /**
- * Is folding annotations enabled ?
- * @return True if enabled; otherwise false
- */
- public boolean isFoldAnnotations();
-
- /**
- * Include abstract classes in the result of hasAnnotation/getAnnotation -
- * default: false
- * @param include True if abstract classes should be included; otherwise false
- * @return The settings
- */
- public Settings includeAbstract(boolean include);
-
- /**
- * Is abstrac classes included in the result of hasAnnotation/getAnnotation
- * @return True if included; otherwise false
- */
- public boolean isIncludeAbstract();
-}
Deleted: projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/Visibility.java
===================================================================
--- projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/Visibility.java 2009-10-19 11:20:42 UTC (rev 95104)
+++ projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/Visibility.java 2009-10-19 11:36:28 UTC (rev 95105)
@@ -1,42 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008-2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.papaki;
-
-/**
- * Represents a visibility
- * @author <a href="mailto:jesper.pedersen at jboss.org">Jesper Pedersen</a>
- */
-public enum Visibility
-{
- /** PUBLIC */
- PUBLIC,
-
- /** PACKAGE */
- PACKAGE,
-
- /** PROTECTED */
- PROTECTED,
-
- /** PPRIVATE */
- PRIVATE
-}
Deleted: projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/package.html
===================================================================
--- projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/package.html 2009-10-19 11:20:42 UTC (rev 95104)
+++ projects/annotations/branches/AnnEnv/core/src/main/java/org/jboss/papaki/package.html 2009-10-19 11:36:28 UTC (rev 95105)
@@ -1,30 +0,0 @@
-<body>
-
-This is the main package of the Papaki project.
-<p>
-The goal of the project is to provide an annotation scanning mechanism and
-present the annotations found in an annotation repository which can be queried.
-<p>
-This project supports different strategies for scanning the class and jar files for
-annotations. This allows the user of the project to choose the best strategy for their
-case or just use the default strategy.
-<p>
-The interaction with the project is simple:
-<p>
-<code>
-AnnotationScanner as = AnnotationScannerFactory.getDefault();
-</code>
-<br>
-<code>
-URL[] urls = ...; // URLs to all your JAR files
-</code>
-<br>
-<code>
-AnnotationRepository ar = as.scan(urls);
-</code>
-<br>
-<code>
-List<Annotation> l = ar.getAnnotation(MyAnnotation.class);
-</code>
-
-</body>
Deleted: projects/annotations/branches/AnnEnv/indexer/build.xml
===================================================================
--- projects/annotations/branches/AnnEnv/indexer/build.xml 2009-10-19 11:20:42 UTC (rev 95104)
+++ projects/annotations/branches/AnnEnv/indexer/build.xml 2009-10-19 11:36:28 UTC (rev 95105)
@@ -1,88 +0,0 @@
-<!--
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
--->
-<project name="papaki-indexer"
- default="compile"
- xmlns:ivy="antlib:org.apache.ivy.ant">
-
- <!-- =================================
- Properties
- ================================= -->
- <property name="build.indexer.dir" value="${build.dir}/indexer" />
-
- <!-- =================================
- Target: init
- ================================= -->
- <target name="init">
- <mkdir dir="${build.indexer.dir}" />
- <mkdir dir="${build.indexer.dir}/impl" />
- </target>
-
- <!-- =================================
- Target: compile
- ================================= -->
- <target name="compile" depends="init">
- <javac srcdir="src/main"
- destdir="${build.indexer.dir}/impl"
- classpathref="core.lib.path.id"
- debug="${javac.debug}"
- deprecation="${javac.deprecation}"
- optimize="${javac.optimize}">
- <compilerarg value="-Xlint"/>
- </javac>
- </target>
-
- <!-- =================================
- Target: jars
- ================================= -->
- <target name="jars" depends="compile">
- <copy todir="${build.indexer.dir}/impl">
- <fileset dir="src/main/resources">
- <include name="**/*.css"/>
- </fileset>
- </copy>
-
- <jar destfile="${target.dir}/papaki-indexer.jar"
- manifest="src/main/resources/indexer-manifest.mf"
- basedir="${build.indexer.dir}/impl"
- excludes="**/*.java"/>
- </target>
-
- <!-- =================================
- Target: docs
- ================================= -->
- <target name="docs">
- <mkdir dir="${target.dir}/docs/indexer"/>
- <javadoc packagenames="org.*"
- sourcepath="src/main/java"
- destdir="${target.dir}/docs/indexer"
- author="true"
- version="true"
- windowtitle="Papaki - Indexer"
- doctitle="Papaki - Indexer"
- use="true"
- classpathref="core.lib.path.id"
- bottom="Copyright © 2009 Red Hat Middleware LLC (http://www.jboss.com/)">
- <link offline="true" href="http://java.sun.com/j2se/5/docs/api/" packagelistLoc="${java.home}/../docs/api"/>
- </javadoc>
- </target>
-
-</project>
More information about the jboss-cvs-commits
mailing list