Return-Path: X-Original-To: apmail-onami-commits-archive@minotaur.apache.org Delivered-To: apmail-onami-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 325C8107AE for ; Mon, 12 May 2014 06:43:32 +0000 (UTC) Received: (qmail 72572 invoked by uid 500); 12 May 2014 06:43:32 -0000 Delivered-To: apmail-onami-commits-archive@onami.apache.org Received: (qmail 72445 invoked by uid 500); 12 May 2014 06:43:31 -0000 Mailing-List: contact commits-help@onami.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@onami.apache.org Delivered-To: mailing list commits@onami.apache.org Received: (qmail 72371 invoked by uid 99); 12 May 2014 06:43:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2014 06:43:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2014 06:43:26 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6F0382388C5A; Mon, 12 May 2014 06:42:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1593897 [21/27] - in /onami/site/persist: ./ apidocs/assets/ apidocs/reference/ apidocs/reference/org/apache/onami/persist/ cobertura/ xref-test/ xref-test/org/apache/onami/persist/ xref-test/org/apache/onami/persist/test/ xref-test/org/ap... Date: Mon, 12 May 2014 06:42:10 -0000 To: commits@onami.apache.org From: sclassen@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140512064219.6F0382388C5A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: onami/site/persist/xref/org/apache/onami/persist/EntityManagerFactorySourceByJndiLookup.html URL: http://svn.apache.org/viewvc/onami/site/persist/xref/org/apache/onami/persist/EntityManagerFactorySourceByJndiLookup.html?rev=1593897&view=auto ============================================================================== --- onami/site/persist/xref/org/apache/onami/persist/EntityManagerFactorySourceByJndiLookup.html (added) +++ onami/site/persist/xref/org/apache/onami/persist/EntityManagerFactorySourceByJndiLookup.html Mon May 12 06:42:06 2014 @@ -0,0 +1,86 @@ + + + +EntityManagerFactorySourceByJndiLookup xref + + + +
+1   package org.apache.onami.persist;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one
+5    * or more contributor license agreements.  See the NOTICE file
+6    * distributed with this work for additional information
+7    * regarding copyright ownership.  The ASF licenses this file
+8    * to you under the Apache License, Version 2.0 (the
+9    * "License"); you may not use this file except in compliance
+10   * with the License.  You may obtain a copy of the License at
+11   *
+12   *   http://www.apache.org/licenses/LICENSE-2.0
+13   *
+14   * Unless required by applicable law or agreed to in writing,
+15   * software distributed under the License is distributed on an
+16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+17   * KIND, either express or implied.  See the License for the
+18   * specific language governing permissions and limitations
+19   * under the License.
+20   */
+21  
+22  import com.google.inject.Inject;
+23  import com.google.inject.Singleton;
+24  
+25  import javax.persistence.EntityManagerFactory;
+26  
+27  import static org.apache.onami.persist.Preconditions.checkNotNull;
+28  
+29  /**
+30   * Source for {@link javax.persistence.EntityManagerFactory}.
+31   * The sourced instance is looked up via a JNDI call.
+32   */
+33  @Singleton
+34  class EntityManagerFactorySourceByJndiLookup
+35      implements EntityManagerFactorySource
+36  {
+37  
+38      /**
+39       * The JNDI name of the persistence unit.
+40       */
+41      private final String jndiName;
+42  
+43      /**
+44       * Helper for JNDI lookup.
+45       */
+46      private final JndiLookupHelper jndiLookupHelper;
+47  
+48      /**
+49       * Constructor.
+50       *
+51       * @param jndiName         jndi name of the entity manager factory. Must not be {@code null}.
+52       * @param jndiLookupHelper the lookup helper. Must not be {@code null}.
+53       */
+54      @Inject
+55      EntityManagerFactorySourceByJndiLookup( @ForContainerManaged String jndiName, JndiLookupHelper jndiLookupHelper )
+56      {
+57          this.jndiName = checkNotNull( jndiName, "jndiName is mandatory!" );
+58          this.jndiLookupHelper = checkNotNull( jndiLookupHelper, "jndiLookupHelper is mandatory!" );
+59      }
+60  
+61      /**
+62       * Gets a {@link javax.persistence.EntityManagerFactory} by looking it up in the JNDI context.
+63       *
+64       * @return the found entity manager factory
+65       * @throws RuntimeException when no entity manager factory was found.
+66       */
+67      //@Override
+68      public EntityManagerFactory getEntityManagerFactory()
+69      {
+70          return jndiLookupHelper.doJndiLookup( EntityManagerFactory.class, jndiName );
+71      }
+72  
+73  }
+
+
+ + + \ No newline at end of file Propchange: onami/site/persist/xref/org/apache/onami/persist/EntityManagerFactorySourceByJndiLookup.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: onami/site/persist/xref/org/apache/onami/persist/EntityManagerFactorySourceByJndiLookup.html ------------------------------------------------------------------------------ svn:keywords = Date Revision Author HeadURL Id Propchange: onami/site/persist/xref/org/apache/onami/persist/EntityManagerFactorySourceByJndiLookup.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: onami/site/persist/xref/org/apache/onami/persist/EntityManagerFactorySourceViaProvider.html URL: http://svn.apache.org/viewvc/onami/site/persist/xref/org/apache/onami/persist/EntityManagerFactorySourceViaProvider.html?rev=1593897&view=auto ============================================================================== --- onami/site/persist/xref/org/apache/onami/persist/EntityManagerFactorySourceViaProvider.html (added) +++ onami/site/persist/xref/org/apache/onami/persist/EntityManagerFactorySourceViaProvider.html Mon May 12 06:42:06 2014 @@ -0,0 +1,70 @@ + + + +EntityManagerFactorySourceViaProvider xref + + + +
+1   package org.apache.onami.persist;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one
+5    * or more contributor license agreements.  See the NOTICE file
+6    * distributed with this work for additional information
+7    * regarding copyright ownership.  The ASF licenses this file
+8    * to you under the Apache License, Version 2.0 (the
+9    * "License"); you may not use this file except in compliance
+10   * with the License.  You may obtain a copy of the License at
+11   *
+12   *   http://www.apache.org/licenses/LICENSE-2.0
+13   *
+14   * Unless required by applicable law or agreed to in writing,
+15   * software distributed under the License is distributed on an
+16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+17   * KIND, either express or implied.  See the License for the
+18   * specific language governing permissions and limitations
+19   * under the License.
+20   */
+21  
+22  import com.google.inject.Inject;
+23  import com.google.inject.Provider;
+24  import com.google.inject.Singleton;
+25  
+26  import javax.persistence.EntityManagerFactory;
+27  
+28  /**
+29   * Source for {@link javax.persistence.EntityManagerFactory}.
+30   * The sourced instance is provided by guice.
+31   */
+32  @Singleton
+33  class EntityManagerFactorySourceViaProvider
+34      implements EntityManagerFactorySource
+35  {
+36      private final Provider<EntityManagerFactory> emfProvider;
+37  
+38      /**
+39       * Constructor.
+40       *
+41       * @param emfProvider the provider which gives access to the instance coming from the container.
+42       */
+43      @Inject
+44      public EntityManagerFactorySourceViaProvider( @ForContainerManaged Provider<EntityManagerFactory> emfProvider )
+45      {
+46          this.emfProvider = emfProvider;
+47      }
+48  
+49      /**
+50       * {@inheritDoc}
+51       */
+52      //@Override
+53      public EntityManagerFactory getEntityManagerFactory()
+54      {
+55          return emfProvider.get();
+56      }
+57  }
+
+
+ + + \ No newline at end of file Propchange: onami/site/persist/xref/org/apache/onami/persist/EntityManagerFactorySourceViaProvider.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: onami/site/persist/xref/org/apache/onami/persist/EntityManagerFactorySourceViaProvider.html ------------------------------------------------------------------------------ svn:keywords = Date Revision Author HeadURL Id Propchange: onami/site/persist/xref/org/apache/onami/persist/EntityManagerFactorySourceViaProvider.html ------------------------------------------------------------------------------ svn:mime-type = text/html Modified: onami/site/persist/xref/org/apache/onami/persist/EntityManagerProvider.html URL: http://svn.apache.org/viewvc/onami/site/persist/xref/org/apache/onami/persist/EntityManagerProvider.html?rev=1593897&r1=1593896&r2=1593897&view=diff ============================================================================== --- onami/site/persist/xref/org/apache/onami/persist/EntityManagerProvider.html (original) +++ onami/site/persist/xref/org/apache/onami/persist/EntityManagerProvider.html Mon May 12 06:42:06 2014 @@ -1,66 +1,66 @@ - - + EntityManagerProvider xref
-
-1   package org.apache.onami.persist;
-2   
-3   /*
-4    * Licensed to the Apache Software Foundation (ASF) under one
-5    * or more contributor license agreements.  See the NOTICE file
-6    * distributed with this work for additional information
-7    * regarding copyright ownership.  The ASF licenses this file
-8    * to you under the Apache License, Version 2.0 (the
-9    * "License"); you may not use this file except in compliance
-10   * with the License.  You may obtain a copy of the License at
-11   *
-12   *   http://www.apache.org/licenses/LICENSE-2.0
-13   *
-14   * Unless required by applicable law or agreed to in writing,
-15   * software distributed under the License is distributed on an
-16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-17   * KIND, either express or implied.  See the License for the
-18   * specific language governing permissions and limitations
-19   * under the License.
-20   */
-21  
-22  import com.google.inject.Provider;
-23  
-24  import javax.persistence.EntityManager;
-25  
-26  /**
-27   * Provider for {@link EntityManager}.
-28   * <p/>
-29   * This class does not implement the {@link Provider} interface because the {@link EntityManager}
-30   * objects do have a life cycle and should therefore not be stored in instance/member variables.
-31   * <p/>
-32   * The {@link UnitOfWork} defines the life cycle of the {@link EntityManager}. An entity manager
-33   * will be created when the unit of work is started. It is open and valid for use during the entire
-34   * unit of work. When the unit of work ends the entity manager is closed and can no longer
-35   * be used.
-36   * <p/>
-37   * It is a good practice to store this provider in a instance/member variable and only obtain an
-38   * {@link EntityManager} instance in a Method where it is used. This ensures that the method always
-39   * has access to a valid {@link EntityManager}.
-40   * <p/>
-41   * The {@link EntityManagerProvider} is thread save.
-42   */
-43  public interface EntityManagerProvider
-44  {
-45  
-46      /**
-47       * @return the {@link EntityManager}.
-48       * @throws IllegalStateException if {@link UnitOfWork#isActive()} returns false.
-49       */
-50      EntityManager get()
-51          throws IllegalStateException;
-52  
-53  }
+1   package org.apache.onami.persist;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one
+5    * or more contributor license agreements.  See the NOTICE file
+6    * distributed with this work for additional information
+7    * regarding copyright ownership.  The ASF licenses this file
+8    * to you under the Apache License, Version 2.0 (the
+9    * "License"); you may not use this file except in compliance
+10   * with the License.  You may obtain a copy of the License at
+11   *
+12   *   http://www.apache.org/licenses/LICENSE-2.0
+13   *
+14   * Unless required by applicable law or agreed to in writing,
+15   * software distributed under the License is distributed on an
+16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+17   * KIND, either express or implied.  See the License for the
+18   * specific language governing permissions and limitations
+19   * under the License.
+20   */
+21  
+22  import com.google.inject.Provider;
+23  
+24  import javax.persistence.EntityManager;
+25  
+26  /**
+27   * Provider for {@link EntityManager}.
+28   * <p/>
+29   * This class does not implement the {@link Provider} interface because the {@link EntityManager}
+30   * objects do have a life cycle and should therefore not be stored in instance/member variables.
+31   * <p/>
+32   * The {@link UnitOfWork} defines the life cycle of the {@link EntityManager}. An entity manager
+33   * will be created when the unit of work is started. It is open and valid for use during the entire
+34   * unit of work. When the unit of work ends the entity manager is closed and can no longer
+35   * be used.
+36   * <p/>
+37   * It is a good practice to store this provider in a instance/member variable and only obtain an
+38   * {@link EntityManager} instance in a method where it is used. This ensures that the method always
+39   * has access to a valid {@link EntityManager}.
+40   * <p/>
+41   * The {@link EntityManagerProvider} is thread save.
+42   */
+43  public interface EntityManagerProvider extends Provider<EntityManager>
+44  {
+45  
+46      /**
+47       * @return the {@link EntityManager}.
+48       * @throws IllegalStateException if {@link UnitOfWork#isActive()} returns false.
+49       */
+50      EntityManager get()
+51          throws IllegalStateException;
+52  
+53  }
 
-
- +
+ + + \ No newline at end of file Modified: onami/site/persist/xref/org/apache/onami/persist/EntityManagerProviderImpl.html URL: http://svn.apache.org/viewvc/onami/site/persist/xref/org/apache/onami/persist/EntityManagerProviderImpl.html?rev=1593897&r1=1593896&r2=1593897&view=diff ============================================================================== --- onami/site/persist/xref/org/apache/onami/persist/EntityManagerProviderImpl.html (original) +++ onami/site/persist/xref/org/apache/onami/persist/EntityManagerProviderImpl.html Mon May 12 06:42:06 2014 @@ -1,156 +1,172 @@ - - + EntityManagerProviderImpl xref
-
-1   package org.apache.onami.persist;
-2   
-3   /*
-4    * Licensed to the Apache Software Foundation (ASF) under one
-5    * or more contributor license agreements.  See the NOTICE file
-6    * distributed with this work for additional information
-7    * regarding copyright ownership.  The ASF licenses this file
-8    * to you under the Apache License, Version 2.0 (the
-9    * "License"); you may not use this file except in compliance
-10   * with the License.  You may obtain a copy of the License at
-11   *
-12   *   http://www.apache.org/licenses/LICENSE-2.0
-13   *
-14   * Unless required by applicable law or agreed to in writing,
-15   * software distributed under the License is distributed on an
-16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-17   * KIND, either express or implied.  See the License for the
-18   * specific language governing permissions and limitations
-19   * under the License.
-20   */
-21  
-22  import javax.persistence.EntityManager;
-23  import javax.persistence.EntityManagerFactory;
-24  import java.util.Properties;
-25  
-26  import static org.apache.onami.persist.Preconditions.checkNotNull;
-27  
-28  /**
-29   * Implementation of {@link EntityManagerProvider} and {@link UnitOfWork}.
-30   */
-31  final class EntityManagerProviderImpl
-32      implements EntityManagerProvider, UnitOfWork
-33  {
-34  
-35      // ---- Members
-36  
-37      /**
-38       * Provider for {@link EntityManagerFactory}.
-39       */
-40      private final EntityManagerFactoryProvider emfProvider;
-41  
-42      /**
-43       * Additional properties to be set on every {@link EntityManager} which is created.
-44       */
-45      private final Properties properties;
-46  
-47      /**
-48       * Thread local store of {@link EntityManager}s.
-49       */
-50      private final ThreadLocal<EntityManager> entityManagers = new ThreadLocal<EntityManager>();
-51  
-52      // ---- Constructor
-53  
-54      /**
-55       * Constructor.
-56       *
-57       * @param emfProvider the provider for {@link EntityManagerFactory}.
-58       */
-59      public EntityManagerProviderImpl( EntityManagerFactoryProvider emfProvider )
-60      {
-61          this( emfProvider, null );
-62      }
-63  
-64      /**
-65       * Constructor.
-66       *
-67       * @param emfProvider the provider for {@link EntityManagerFactory}. Must not be {@code null}.
-68       * @param properties  additional properties to be set on every {@link EntityManager} which is created.
-69       */
-70      public EntityManagerProviderImpl( EntityManagerFactoryProvider emfProvider, Properties properties )
-71      {
-72          checkNotNull( emfProvider );
-73  
-74          this.emfProvider = emfProvider;
-75          this.properties = properties;
-76      }
-77  
-78      // ---- Methods
-79  
-80      /**
-81       * {@inheritDoc}
-82       */
-83      // @Override
-84      public EntityManager get()
-85      {
-86          final EntityManager entityManager = entityManagers.get();
-87          if ( null != entityManager )
-88          {
-89              return entityManager;
-90          }
-91  
-92          throw new IllegalStateException( "UnitOfWork is not running." );
-93      }
-94  
-95      /**
-96       * {@inheritDoc}
-97       */
-98      // @Override
-99      public void begin()
-100     {
-101         if ( isActive() )
-102         {
-103             throw new IllegalStateException( "Unit of work has already been started." );
-104         }
-105 
-106         final EntityManagerFactory emf = emfProvider.get();
-107         final EntityManager em;
-108         if ( null == properties )
-109         {
-110             em = emf.createEntityManager();
-111         }
-112         else
-113         {
-114             em = emf.createEntityManager( properties );
-115         }
-116 
-117         entityManagers.set( em );
-118     }
-119 
-120     /**
-121      * {@inheritDoc}
-122      */
-123     // @Override
-124     public boolean isActive()
-125     {
-126         return null != entityManagers.get();
-127     }
-128 
-129     /**
-130      * {@inheritDoc}
-131      */
-132     // @Override
-133     public void end()
-134     {
-135         final EntityManager em = entityManagers.get();
-136         if ( null != em )
-137         {
-138             em.close();
-139             entityManagers.remove();
-140         }
-141     }
-142 
-143 }
+1   package org.apache.onami.persist;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one
+5    * or more contributor license agreements.  See the NOTICE file
+6    * distributed with this work for additional information
+7    * regarding copyright ownership.  The ASF licenses this file
+8    * to you under the Apache License, Version 2.0 (the
+9    * "License"); you may not use this file except in compliance
+10   * with the License.  You may obtain a copy of the License at
+11   *
+12   *   http://www.apache.org/licenses/LICENSE-2.0
+13   *
+14   * Unless required by applicable law or agreed to in writing,
+15   * software distributed under the License is distributed on an
+16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+17   * KIND, either express or implied.  See the License for the
+18   * specific language governing permissions and limitations
+19   * under the License.
+20   */
+21  
+22  
+23  import com.google.inject.Inject;
+24  import com.google.inject.Singleton;
+25  
+26  import javax.persistence.EntityManager;
+27  import javax.persistence.EntityManagerFactory;
+28  import java.util.Properties;
+29  
+30  import static org.apache.onami.persist.Preconditions.checkNotNull;
+31  
+32  /**
+33   * Implementation of {@link EntityManagerProvider} and {@link UnitOfWork}.
+34   */
+35  @Singleton
+36  class EntityManagerProviderImpl
+37      implements EntityManagerProvider, UnitOfWork
+38  {
+39  
+40      /**
+41       * Provider for {@link javax.persistence.EntityManagerFactory}.
+42       */
+43      private final EntityManagerFactoryProvider emfProvider;
+44  
+45      /**
+46       * Additional properties to be set on every {@link EntityManager} which is created.
+47       */
+48      private final Properties properties;
+49  
+50      /**
+51       * Thread local store of {@link EntityManager}s.
+52       */
+53      private final ThreadLocal<EntityManager> entityManagers = new ThreadLocal<EntityManager>();
+54  
+55      /**
+56       * Constructor.
+57       *
+58       * @param emfProvider the provider for {@link EntityManagerFactory}. Must not be {@code null}.
+59       * @param properties  additional properties to be set on every {@link EntityManager} which is created.
+60       */
+61      @Inject
+62      public EntityManagerProviderImpl( EntityManagerFactoryProvider emfProvider,
+63                                        @Nullable @ForContainerManaged Properties properties )
+64      {
+65          this.emfProvider = checkNotNull( emfProvider, "emfProvider is mandatory!" );
+66          this.properties = properties;
+67      }
+68  
+69      /**
+70       * {@inheritDoc}
+71       */
+72      // @Override
+73      public EntityManager get()
+74          throws IllegalStateException
+75      {
+76          final EntityManager entityManager = entityManagers.get();
+77          if ( entityManager != null )
+78          {
+79              return entityManager;
+80          }
+81          else
+82          {
+83              throw new IllegalStateException( "UnitOfWork is not running." );
+84          }
+85      }
+86  
+87      /**
+88       * {@inheritDoc}
+89       */
+90      // @Override
+91      public void begin()
+92      {
+93          if ( isActive() )
+94          {
+95              throw new IllegalStateException( "Unit of work has already been started." );
+96          }
+97          else
+98          {
+99              final EntityManager em = createEntityManager();
+100             entityManagers.set( em );
+101         }
+102     }
+103 
+104     /**
+105      * @return a new entity manager instance.
+106      */
+107     private EntityManager createEntityManager()
+108     {
+109         final EntityManagerFactory emf = emfProvider.get();
+110         if ( null == properties )
+111         {
+112             return emf.createEntityManager();
+113         }
+114         else
+115         {
+116             return emf.createEntityManager( properties );
+117         }
+118     }
+119 
+120     /**
+121      * {@inheritDoc}
+122      */
+123     // @Override
+124     public boolean isActive()
+125     {
+126         return entityManagers.get() != null;
+127     }
+128 
+129     /**
+130      * {@inheritDoc}
+131      */
+132     // @Override
+133     public void end()
+134     {
+135         final EntityManager em = entityManagers.get();
+136         if ( em != null )
+137         {
+138             closeAndRemoveEntityManager( em );
+139         }
+140     }
+141 
+142     /**
+143      * closes the entity manager and removes it from the internal storage.
+144      *
+145      * @param em the entity manager to close
+146      */
+147     private void closeAndRemoveEntityManager( EntityManager em )
+148     {
+149         try
+150         {
+151             em.close();
+152         }
+153         finally
+154         {
+155             entityManagers.remove();
+156         }
+157     }
+158 
+159 }
 
-
- +
+ + + \ No newline at end of file Added: onami/site/persist/xref/org/apache/onami/persist/ForApplicationManaged.html URL: http://svn.apache.org/viewvc/onami/site/persist/xref/org/apache/onami/persist/ForApplicationManaged.html?rev=1593897&view=auto ============================================================================== --- onami/site/persist/xref/org/apache/onami/persist/ForApplicationManaged.html (added) +++ onami/site/persist/xref/org/apache/onami/persist/ForApplicationManaged.html Mon May 12 06:42:06 2014 @@ -0,0 +1,51 @@ + + + +ForApplicationManaged xref + + + +
+1   package org.apache.onami.persist;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one
+5    * or more contributor license agreements.  See the NOTICE file
+6    * distributed with this work for additional information
+7    * regarding copyright ownership.  The ASF licenses this file
+8    * to you under the Apache License, Version 2.0 (the
+9    * "License"); you may not use this file except in compliance
+10   * with the License.  You may obtain a copy of the License at
+11   *
+12   *   http://www.apache.org/licenses/LICENSE-2.0
+13   *
+14   * Unless required by applicable law or agreed to in writing,
+15   * software distributed under the License is distributed on an
+16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+17   * KIND, either express or implied.  See the License for the
+18   * specific language governing permissions and limitations
+19   * under the License.
+20   */
+21  
+22  import com.google.inject.BindingAnnotation;
+23  
+24  import java.lang.annotation.ElementType;
+25  import java.lang.annotation.Retention;
+26  import java.lang.annotation.RetentionPolicy;
+27  import java.lang.annotation.Target;
+28  
+29  
+30  /**
+31   * Annotation to mark bindings which are specific for application managed persistence units.
+32   */
+33  @Target( { ElementType.PARAMETER } )
+34  @Retention( RetentionPolicy.RUNTIME )
+35  @BindingAnnotation
+36  @interface ForApplicationManaged
+37  {
+38  }
+
+
+ + + \ No newline at end of file Propchange: onami/site/persist/xref/org/apache/onami/persist/ForApplicationManaged.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: onami/site/persist/xref/org/apache/onami/persist/ForApplicationManaged.html ------------------------------------------------------------------------------ svn:keywords = Date Revision Author HeadURL Id Propchange: onami/site/persist/xref/org/apache/onami/persist/ForApplicationManaged.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: onami/site/persist/xref/org/apache/onami/persist/ForContainerManaged.html URL: http://svn.apache.org/viewvc/onami/site/persist/xref/org/apache/onami/persist/ForContainerManaged.html?rev=1593897&view=auto ============================================================================== --- onami/site/persist/xref/org/apache/onami/persist/ForContainerManaged.html (added) +++ onami/site/persist/xref/org/apache/onami/persist/ForContainerManaged.html Mon May 12 06:42:06 2014 @@ -0,0 +1,51 @@ + + + +ForContainerManaged xref + + + +
+1   package org.apache.onami.persist;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one
+5    * or more contributor license agreements.  See the NOTICE file
+6    * distributed with this work for additional information
+7    * regarding copyright ownership.  The ASF licenses this file
+8    * to you under the Apache License, Version 2.0 (the
+9    * "License"); you may not use this file except in compliance
+10   * with the License.  You may obtain a copy of the License at
+11   *
+12   *   http://www.apache.org/licenses/LICENSE-2.0
+13   *
+14   * Unless required by applicable law or agreed to in writing,
+15   * software distributed under the License is distributed on an
+16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+17   * KIND, either express or implied.  See the License for the
+18   * specific language governing permissions and limitations
+19   * under the License.
+20   */
+21  
+22  import com.google.inject.BindingAnnotation;
+23  
+24  import java.lang.annotation.ElementType;
+25  import java.lang.annotation.Retention;
+26  import java.lang.annotation.RetentionPolicy;
+27  import java.lang.annotation.Target;
+28  
+29  
+30  /**
+31   * Annotation to mark bindings which are specific for container managed persistence units.
+32   */
+33  @Target( { ElementType.PARAMETER } )
+34  @Retention( RetentionPolicy.RUNTIME )
+35  @BindingAnnotation
+36  @interface ForContainerManaged
+37  {
+38  }
+
+
+ + + \ No newline at end of file Propchange: onami/site/persist/xref/org/apache/onami/persist/ForContainerManaged.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: onami/site/persist/xref/org/apache/onami/persist/ForContainerManaged.html ------------------------------------------------------------------------------ svn:keywords = Date Revision Author HeadURL Id Propchange: onami/site/persist/xref/org/apache/onami/persist/ForContainerManaged.html ------------------------------------------------------------------------------ svn:mime-type = text/html