org.superbiz.spring
Class Theater

java.lang.Object
  extended by org.superbiz.spring.Theater

public class Theater
extends Object

Spring bean that references the Movies EJB and the Movie JPA bean.

This bean shows that Spring beans can have references to EJBs.


Constructor Summary
Theater(Movies movies)
          The Movies EJB is passed in on the constructor which guarantees we can use it in the setNowPlaying method.
 
Method Summary
 List<Movie> getMovies()
           
 void setNowPlaying(List<String> nowPlaying)
          For every title in the list we will use the Movies EJB to lookup the actual Movie JPA object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Theater

public Theater(Movies movies)
The Movies EJB is passed in on the constructor which guarantees we can use it in the setNowPlaying method.

Parameters:
movies -
Method Detail

setNowPlaying

public void setNowPlaying(List<String> nowPlaying)
                   throws Exception
For every title in the list we will use the Movies EJB to lookup the actual Movie JPA object.

Parameters:
nowPlaying -
Throws:
Exception

getMovies

public List<Movie> getMovies()
                      throws Exception
Throws:
Exception


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.