BaseContext.java :  » UnTagged » openmobster » org » openmobster » core » cloud » console » client » state » Android Open Source

Android Open Source » UnTagged » openmobster 
openmobster » org » openmobster » core » cloud » console » client » state » BaseContext.java
/**
 * Copyright (c) {2003,2010} {openmobster@gmail.com} {individual contributors as indicated by the @authors tag}.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
package org.openmobster.core.cloud.console.client.state;

import org.openmobster.core.cloud.console.client.common.AttributeManager;

/**
 *
 * @author openmobster@gmail.com
 */
public class BaseContext 
{
  private AttributeManager mgr;
  
  public BaseContext()
  {
    this.mgr = new AttributeManager();
  }
  
  public Object getAttribute(String name)
  {
    return this.mgr.getAttribute(name);
  }
  
  public void setAttribute(String name,Object value)
  {
    this.mgr.setAttribute(name, value);
  }
  
  public void removeAttribute(String name)
  {
    this.mgr.removeAttribute(name);
  }
}
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.