G - the group identifier typeI - the bean identifier typeT - the bean instance typepublic interface Bean<G,I,T> extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
T |
acquire()
Acquires a reference to the bean instance.
|
void |
close()
Closes any resources used by this bean.
|
G |
getGroupId()
Returns the identifier of the group to which this bean is associated.
|
I |
getId()
Returns the identifier of this bean.
|
boolean |
isExpired()
Indicates whether or not the specified bean is expired.
|
boolean |
release()
Releases a reference to the bean made via
acquire(). |
void |
remove(RemoveListener<T> listener)
Removes this bean, notifying the specified listener.
|
I getId()
G getGroupId()
T acquire()
acquire() should be paired with a call to release().boolean release()
acquire().boolean isExpired()
void remove(RemoveListener<T> listener)
listener - a remove listenervoid close()
release() returned true.close in interface AutoCloseableCopyright © 2015 JBoss by Red Hat. All rights reserved.