*/
public PizzaServiceApplication () {
// Trace message
- this.getLogger().trace("CALLED!");
+ this.getLogger().trace("CALLED!"); //NOI18N
}
@Override
// context should not be null
if (null == context) {
// Abort here
- throw new NullPointerException("context is null");
+ throw new NullPointerException("context is null"); //NOI18N
}
// Is the bundle initialized?
// categoryFrontend must be set
if (null == this.productFrontend) {
// Abort here
- throw new NullPointerException("productFrontend is null");
+ throw new NullPointerException("productFrontend is null"); //NOI18N
}
try {
@Override
public Iterator<Product> getAllProducts () throws ServletException {
// Trace message
- this.getLogger().trace("CALLED!");
+ this.getLogger().trace("CALLED!"); //NOI18N
// categoryFrontend must be set
if (null == this.productFrontend) {
// Abort here
- throw new NullPointerException("productFrontend is null");
+ throw new NullPointerException("productFrontend is null"); //NOI18N
}
try {
@Override
public Iterator<Category> getAllCategories () throws ServletException {
// Trace message
- this.getLogger().trace("CALLED!");
+ this.getLogger().trace("CALLED!"); //NOI18N
// categoryFrontend must be set
if (null == this.categoryFrontend) {
// Abort here
- throw new NullPointerException("categoryFrontend is null");
+ throw new NullPointerException("categoryFrontend is null"); //NOI18N
}
try {
@Deprecated
private boolean isProductChoosen (final Product product, final HttpServletRequest request, final HttpSession session) {
- throw new UnsupportedOperationException("This method is deprecated and shall not be called");
+ throw new UnsupportedOperationException("This method is deprecated and shall not be called"); //NOI18N
}
@Override
// categoryFrontend must be set
if (null == this.categoryFrontend) {
// Abort here
- throw new NullPointerException("categoryFrontend is null");
+ throw new NullPointerException("categoryFrontend is null"); //NOI18N
}
// Delegate to frontend
// categoryFrontend must be set
if (null == this.productFrontend) {
// Abort here
- throw new NullPointerException("productFrontend is null");
+ throw new NullPointerException("productFrontend is null"); //NOI18N
}
// Delegate to frontend
@Override
public Product getProduct (final AddableBasketItem item) throws ServletException {
// Trace message
- this.getLogger().trace("item=" + item + " - CALLED!");
+ this.getLogger().trace("item=" + item + " - CALLED!"); //NOI18N
// item should not be null
if (null == item) {
// Abort here
- throw new NullPointerException("item is null");
+ throw new NullPointerException("item is null"); //NOI18N
} else if (null == this.productFrontend) {
// Abort here
- throw new NullPointerException("productFrontend is null");
+ throw new NullPointerException("productFrontend is null"); //NOI18N
}
// Init product instance
}
// Trace message
- this.getLogger().trace("product=" + product + " - EXIT!");
+ this.getLogger().trace("product=" + product + " - EXIT!"); //NOI18N
// Return it
return product;