From do-not-reply at jboss.org Fri Feb 12 10:17:38 2010 Content-Type: multipart/mixed; boundary="===============5186385996976679722==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r1774 - in kernel/trunk/exo.kernel.container/src/main/java/org/exoplatform/management: management and 1 other directories. Date: Fri, 12 Feb 2010 10:17:38 -0500 Message-ID: <201002121517.o1CFHciv032127@svn01.web.mwc.hst.phx2.redhat.com> --===============5186385996976679722== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: julien_viet Date: 2010-02-12 10:17:37 -0500 (Fri, 12 Feb 2010) New Revision: 1774 Added: kernel/trunk/exo.kernel.container/src/main/java/org/exoplatform/manageme= nt/management/ kernel/trunk/exo.kernel.container/src/main/java/org/exoplatform/manageme= nt/management/annotations/ kernel/trunk/exo.kernel.container/src/main/java/org/exoplatform/manageme= nt/management/annotations/RESTEndpoint.java Log: EXOJCR-506 : Define the RESTEndpoint annotation for exposing a managed serv= ice as a REST endpoint Added: kernel/trunk/exo.kernel.container/src/main/java/org/exoplatform/mana= gement/management/annotations/RESTEndpoint.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.container/src/main/java/org/exoplatform/managem= ent/management/annotations/RESTEndpoint.java (rev 0) +++ kernel/trunk/exo.kernel.container/src/main/java/org/exoplatform/managem= ent/management/annotations/RESTEndpoint.java 2010-02-12 15:17:37 UTC (rev 1= 774) @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2010 eXo Platform SAS. + * + * 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.exoplatform.management.management.annotations; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Annotates a managed service to define its exposure as a rest endpoint. = The managed service must already be annotated + * with {@link org.exoplatform.management.annotations.Managed}. + * + * @author Julien Viet + * @version $Revision$ + */ +(a)Retention(RetentionPolicy.RUNTIME) +(a)Target(ElementType.TYPE) +public @interface RESTEndpoint +{ + + /** + * Returns the rest path of the managed object. + * + * @return the path + */ + String path(); + +} --===============5186385996976679722==--