Errai 3.0.1-SNAPSHOT

org.jboss.errai.ioc.client.lifecycle.impl
Class AccessImpl<T>

java.lang.Object
  extended by org.jboss.errai.ioc.client.lifecycle.impl.LifecycleEventImpl<T>
      extended by 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>


Constructor Summary
AccessImpl()
           
AccessImpl(boolean isMethodAccess, boolean isFieldAccess, String accessedName)
           
 
Method Summary
 Class<?> getEventType()
          This must return the interface of the event it represents (i.e.
 String getMethodOrFieldName()
           
 boolean isFieldAccess()
           
 boolean isMethodAccess()
           
 void setIsFieldAccess(boolean isFieldAccessed)
          This must be set before the event is fired.
 void setIsMethodAccess(boolean isMethodAccess)
          This must be set before the event is fired.
 void setMethodOrFieldName(String methodOrFieldName)
          This must be set before the event is fired.
 
Methods inherited from class org.jboss.errai.ioc.client.lifecycle.impl.LifecycleEventImpl
fireAsync, fireAsync, getInstance, veto
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.errai.ioc.client.lifecycle.api.LifecycleEvent
fireAsync, fireAsync, getInstance, veto
 

Constructor Detail

AccessImpl

public AccessImpl(boolean isMethodAccess,
                  boolean isFieldAccess,
                  String accessedName)

AccessImpl

public AccessImpl()
Method Detail

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.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.