[jboss-cvs] JBossAS SVN: r67582 - in projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation: impl and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Nov 28 19:21:59 EST 2007
Author: ALRubinger
Date: 2007-11-28 19:21:59 -0500 (Wed, 28 Nov 2007)
New Revision: 67582
Added:
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/DefaultInterceptorMarker.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DefaultInterceptorMarkerImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ProducerImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ProducersImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RunAsPrincipalImpl.java
projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/SecurityDomainImpl.java
Log:
[EJBTHREE-1134] Added additional Internal Annotations and Annotation Implementations
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/DefaultInterceptorMarker.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/DefaultInterceptorMarker.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/DefaultInterceptorMarker.java 2007-11-29 00:21:59 UTC (rev 67582)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation;
+
+/**
+ * Annotation for internal use. We need an annotation to match for in ejb3-interceptors-aop.xml to trigger
+ * the EJB3InterceptorsFactory, in case an ejb only has default interceptors. Users should not use this
+ * annotation directly, it is used internally by JBoss EJB3.
+ *
+ *
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 61136 $
+ */
+public @interface DefaultInterceptorMarker {
+
+}
Property changes on: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/DefaultInterceptorMarker.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DefaultInterceptorMarkerImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DefaultInterceptorMarkerImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DefaultInterceptorMarkerImpl.java 2007-11-29 00:21:59 UTC (rev 67582)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import java.lang.annotation.Annotation;
+
+import org.jboss.ejb3.annotation.DefaultInterceptorMarker;
+
+/**
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision$
+ */
+public class DefaultInterceptorMarkerImpl implements DefaultInterceptorMarker
+{
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return DefaultInterceptorMarker.class;
+ }
+
+}
Property changes on: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/DefaultInterceptorMarkerImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ProducerImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ProducerImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ProducerImpl.java 2007-11-29 00:21:59 UTC (rev 67582)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import java.io.Serializable;
+import java.lang.annotation.Annotation;
+
+import org.jboss.ejb3.annotation.Producer;
+
+/**
+ * comment
+ *
+ * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
+ */
+public class ProducerImpl implements Producer, Serializable
+{
+ private static final long serialVersionUID = -5029440272889667348L;
+
+ private String connectionFactory = "";
+ private boolean transacted = false;
+ private int acknowledgeMode = 1;
+ private Class<?> producer = null;
+
+ public ProducerImpl(Class<?> producer)
+ {
+ this.producer = producer;
+ }
+
+ public ProducerImpl(String connectionFactory, boolean transacted, int acknowledgeMode)
+ {
+ this.connectionFactory = connectionFactory;
+ this.transacted = transacted;
+ this.acknowledgeMode = acknowledgeMode;
+ }
+
+ public ProducerImpl(Producer producer)
+ {
+ connectionFactory = producer.connectionFactory();
+ transacted = producer.transacted();
+ acknowledgeMode = producer.acknowledgeMode();
+ }
+
+ public Class producer()
+ {
+ return producer;
+ }
+
+ public String connectionFactory()
+ {
+ return connectionFactory;
+ }
+
+ public void setConnectionFactory(String connectionFactory)
+ {
+ this.connectionFactory = connectionFactory;
+ }
+
+ public boolean transacted()
+ {
+ return transacted;
+ }
+
+ public int acknowledgeMode()
+ {
+ return acknowledgeMode;
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return Producer.class;
+ }
+}
Property changes on: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ProducerImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ProducersImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ProducersImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ProducersImpl.java 2007-11-29 00:21:59 UTC (rev 67582)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import java.io.Serializable;
+import java.lang.annotation.Annotation;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.ejb3.annotation.Producer;
+import org.jboss.ejb3.annotation.Producers;
+
+/**
+ * comment
+ *
+ * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
+ */
+public class ProducersImpl implements Producers, Serializable
+{
+ private static final long serialVersionUID = 6593673540842223866L;
+
+ private List<Producer> producers = new ArrayList<Producer>();
+
+ public ProducersImpl()
+ {
+ }
+
+ public Producer[] value()
+ {
+ Producer[] result = new Producer[producers.size()];
+ producers.toArray(result);
+ return result;
+ }
+
+ public void addProducer(Producer producer)
+ {
+ producers.add(producer);
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return Producers.class;
+ }
+}
Property changes on: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/ProducersImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RunAsPrincipalImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RunAsPrincipalImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RunAsPrincipalImpl.java 2007-11-29 00:21:59 UTC (rev 67582)
@@ -0,0 +1,54 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import org.jboss.ejb3.annotation.RunAsPrincipal;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class RunAsPrincipalImpl implements RunAsPrincipal
+{
+ private String value;
+ public RunAsPrincipalImpl(String value)
+ {
+ this.value = value;
+ }
+
+ public String value()
+ {
+ return value;
+ }
+
+ public Class<RunAsPrincipal> annotationType()
+ {
+ return RunAsPrincipal.class;
+ }
+
+ public String toString()
+ {
+ return annotationType().getName() + " value=" + value;
+ }
+}
Property changes on: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/RunAsPrincipalImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/SecurityDomainImpl.java
===================================================================
--- projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/SecurityDomainImpl.java (rev 0)
+++ projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/SecurityDomainImpl.java 2007-11-29 00:21:59 UTC (rev 67582)
@@ -0,0 +1,76 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb3.annotation.impl;
+
+import org.jboss.ejb3.annotation.SecurityDomain;
+
+/**
+ * // *
+ *
+ * @author <a href="mailto:bill at jboss.org">William DeCoste</a>
+ * @version $Revision$
+ */
+public class SecurityDomainImpl implements SecurityDomain
+{
+ private String value;
+ private String unauthenticatedPrincipal = null;
+
+ public SecurityDomainImpl()
+ {
+ this("");
+ }
+
+ public SecurityDomainImpl(String value)
+ {
+ this.value = value;
+ }
+
+ public String value()
+ {
+ return value;
+ }
+
+ public String unauthenticatedPrincipal()
+ {
+ return unauthenticatedPrincipal;
+ }
+
+ public void setUnauthenticatedPrincipal(String unauthenticatedPrincipal)
+ {
+ this.unauthenticatedPrincipal = unauthenticatedPrincipal;
+ }
+
+ public Class<SecurityDomain> annotationType()
+ {
+ return SecurityDomain.class;
+ }
+
+ public String toString()
+ {
+ StringBuffer sb = new StringBuffer(100);
+ sb.append("SecurityDomainImpl[");
+ sb.append("value=").append(value);
+ sb.append(", unauthenticatedPrincipal=").append(unauthenticatedPrincipal);
+ sb.append("]");
+ return sb.toString();
+ }
+}
Property changes on: projects/ejb3/trunk/ejb3-impl/src/main/java/org/jboss/ejb3/annotation/impl/SecurityDomainImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
More information about the jboss-cvs-commits
mailing list