blob: 749d5741034762c15ca90d2e5e1baa9ea2334ab2 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004 IBM Corporation and others.
* 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
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
/*
* $RCSfile: IDEAccessibleObjectProxy.java,v $
* $Revision: 1.3 $ $Date: 2005/02/15 22:57:26 $
*/
package org.eclipse.jem.internal.proxy.ide;
import java.lang.reflect.AccessibleObject;
import org.eclipse.jem.internal.proxy.core.*;
/**
*
* @since 1.0.0
*/
public class IDEAccessibleObjectProxy extends IDEBeanProxy implements IAccessibleObjectProxy {
protected IDEAccessibleObjectProxy(IDEProxyFactoryRegistry aProxyFactoryRegistry) {
super(aProxyFactoryRegistry);
}
protected IDEAccessibleObjectProxy(IDEProxyFactoryRegistry aProxyFactoryRegistry, Object anObject) {
super(aProxyFactoryRegistry, anObject);
}
/* (non-Javadoc)
* @see org.eclipse.jem.internal.proxy.core.IAccessibleObjectProxy#isAccessible()
*/
public boolean isAccessible() throws ThrowableProxy {
return ((AccessibleObject) getBean()).isAccessible();
}
/* (non-Javadoc)
* @see org.eclipse.jem.internal.proxy.core.IAccessibleObjectProxy#setAccessible(boolean)
*/
public void setAccessible(boolean flag) throws ThrowableProxy {
((AccessibleObject) getBean()).setAccessible(flag);
}
/* (non-Javadoc)
* @see org.eclipse.jem.internal.proxy.core.IBeanProxy#getTypeProxy()
*/
public IBeanTypeProxy getTypeProxy() {
return ((IDEMethodProxyFactory) fProxyFactoryRegistry.getMethodProxyFactory()).accessibleType;
}
}