BusinessObjectLifeCycle.java :  » Framework » droid4me » com » smartnsoft » droid4me » framework » Android Open Source

Android Open Source » Framework » droid4me 
droid4me » com » smartnsoft » droid4me » framework » BusinessObjectLifeCycle.java
/*
 * (C) Copyright 2009-2011 Smart&Soft SAS (http://www.smartnsoft.com/) and contributors.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser General Public License
 * (LGPL) version 2.1 which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/lgpl.html
 *
 * This library 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.
 *
 * Contributors:
 *     E2M - initial API and implementation
 *     Smart&Soft - initial API and implementation
 */

package com.smartnsoft.droid4me.framework;

import java.util.List;

import com.smartnsoft.droid4me.LifeCycle;
import com.smartnsoft.droid4me.menu.MenuCommand;
import com.smartnsoft.droid4me.menu.MenuHandler;

/**
 * An interface which is bound to a business object.
 * 
 * @author douard Mercier
 * @date 2008.06.11
 */
public interface BusinessObjectLifeCycle<BusinessObjectClass>
{

  List<MenuCommand<BusinessObjectClass>> getCustomActions();

  MenuHandler.Custom<BusinessObjectClass> getActionHandler();

  BusinessObjectClass retrieveBusinessObject()
      throws LifeCycle.BusinessObjectUnavailableException;

  void onBusinessObjectsRetrieved();

  BusinessObjectClass getBusinessObject()
      throws LifeCycle.BusinessObjectUnavailableException;

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.