org.jboss.errai.ioc.client.lifecycle.impl
Class AccessImpl<T>
java.lang.Object
org.jboss.errai.ioc.client.lifecycle.impl.LifecycleEventImpl<T>
org.jboss.errai.ioc.client.lifecycle.impl.AccessImpl<T>
- All Implemented Interfaces:
- Access<T>, LifecycleEvent<T>
@Dependent
public class AccessImpl<T>
- extends LifecycleEventImpl<T>
- implements Access<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccessImpl
public AccessImpl(boolean isMethodAccess,
boolean isFieldAccess,
String accessedName)
AccessImpl
public AccessImpl()
isMethodAccess
public boolean isMethodAccess()
- Specified by:
isMethodAccess
in interface Access<T>
- Returns:
- True if a method has been accessed.
setIsMethodAccess
public void setIsMethodAccess(boolean isMethodAccess)
- Description copied from interface:
Access
- This must be set before the event is fired. Defaults to false if not set.
- Specified by:
setIsMethodAccess
in interface Access<T>
- Parameters:
isMethodAccess
- True if a method has been accessed.
getMethodOrFieldName
public String getMethodOrFieldName()
- Specified by:
getMethodOrFieldName
in interface Access<T>
- Returns:
- The name of the field or method that was accessed.
setMethodOrFieldName
public void setMethodOrFieldName(String methodOrFieldName)
- Description copied from interface:
Access
- This must be set before the event is fired.
- Specified by:
setMethodOrFieldName
in interface Access<T>
- Parameters:
methodOrFieldName
- The name of the field or method that was accessed.
getEventType
public Class<?> getEventType()
- Description copied from class:
LifecycleEventImpl
- This must return the interface of the event it represents (i.e.
Access
rather than AccessImpl
).
- Specified by:
getEventType
in class LifecycleEventImpl<T>
isFieldAccess
public boolean isFieldAccess()
- Specified by:
isFieldAccess
in interface Access<T>
- Returns:
- True if a field has been accessed.
setIsFieldAccess
public void setIsFieldAccess(boolean isFieldAccessed)
- Description copied from interface:
Access
- This must be set before the event is fired. Defaults to false if not set.
- Specified by:
setIsFieldAccess
in interface Access<T>
- Parameters:
isFieldAccessed
- True if a field has been accessed.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.