rewrite-showcase-rest 2.0.0.Final

org.ocpsoft.rewrite.showcase.rest
Class ProductRegistry

java.lang.Object
  extended by org.ocpsoft.rewrite.showcase.rest.ProductRegistry

@ApplicationScoped
public class ProductRegistry
extends Object

Author:
Lincoln Baxter, III

Constructor Summary
ProductRegistry()
           
 
Method Summary
 Product add(Product product)
           
 Product getById(int id)
           
 List<Product> getProducts()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductRegistry

public ProductRegistry()
Method Detail

getById

public Product getById(int id)

getProducts

public List<Product> getProducts()

add

public Product add(Product product)

rewrite-showcase-rest 2.0.0.Final

Copyright © 2013 OCPsoft. All Rights Reserved.