org.jboss.webbeans
Class FacadeImpl<T>

java.lang.Object
  extended by org.jboss.webbeans.FacadeImpl<T>
Type Parameters:
T -
Direct Known Subclasses:
EventImpl, InstanceImpl

public abstract class FacadeImpl<T>
extends java.lang.Object

Common implementation for binding-type-based helpers

Author:
Gavin King

Field Summary
protected  java.util.Set<? extends java.lang.annotation.Annotation> bindingTypes
           
protected  Manager manager
           
protected  java.lang.Class<T> type
           
 
Constructor Summary
protected FacadeImpl(java.lang.Class<T> type, Manager manager, java.lang.annotation.Annotation... bindingTypes)
          Constructor
 
Method Summary
protected abstract  java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getFilteredAnnotations()
          Gets a set of annotation classes to ignore
protected  java.lang.annotation.Annotation[] mergeBindings(java.lang.annotation.Annotation... newBindingTypes)
          Merges the binding this helper operates upon with the parameters
protected  java.util.Set<java.lang.annotation.Annotation> mergeBindingTypes(java.util.Set<? extends java.lang.annotation.Annotation> currentBindings, java.lang.annotation.Annotation... newBindings)
          Merges and validates the current and new bindings Checks with an abstract method for annotations to exclude
 java.lang.String toString()
          Gets a string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bindingTypes

protected final java.util.Set<? extends java.lang.annotation.Annotation> bindingTypes

manager

protected final Manager manager

type

protected final java.lang.Class<T> type
Constructor Detail

FacadeImpl

protected FacadeImpl(java.lang.Class<T> type,
                     Manager manager,
                     java.lang.annotation.Annotation... bindingTypes)
Constructor

Parameters:
type - The event type
manager - The Web Beans manager
bindingTypes - The binding types
Method Detail

mergeBindingTypes

protected java.util.Set<java.lang.annotation.Annotation> mergeBindingTypes(java.util.Set<? extends java.lang.annotation.Annotation> currentBindings,
                                                                           java.lang.annotation.Annotation... newBindings)
Merges and validates the current and new bindings Checks with an abstract method for annotations to exclude

Parameters:
currentBindings - Existing bindings
newBindings - New bindings
Returns:
The union of the bindings

getFilteredAnnotations

protected abstract java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getFilteredAnnotations()
Gets a set of annotation classes to ignore

Returns:
A set of annotation classes to ignore

mergeBindings

protected java.lang.annotation.Annotation[] mergeBindings(java.lang.annotation.Annotation... newBindingTypes)
Merges the binding this helper operates upon with the parameters

Parameters:
bindingTypes - The bindings to merge
Returns:
The union of the binding types

toString

public java.lang.String toString()
Gets a string representation

Overrides:
toString in class java.lang.Object
Returns:
A string representation


Copyright © 2008. All Rights Reserved.