javax.inject.manager
Class Decorator

java.lang.Object
  extended by javax.inject.manager.Bean<java.lang.Object>
      extended by javax.inject.manager.Decorator
All Implemented Interfaces:
Contextual<java.lang.Object>

public abstract class Decorator
extends Bean<java.lang.Object>

The Bean object for a a decorator This interface should not be called directly by the application.

Author:
Pete Muir

Constructor Summary
protected Decorator(Manager manager)
          Create an interceptor bean
 
Method Summary
abstract  java.util.Set<java.lang.annotation.Annotation> getDelegateBindings()
          Obtains the bindings of the decorated bean
abstract  java.lang.Class<?> getDelegateType()
          Obtains the type of the decorated bean
abstract  void setDelegate(java.lang.Object instance, java.lang.Object delegate)
          Injects the delegate
 
Methods inherited from class javax.inject.manager.Bean
getBindings, getDeploymentType, getInjectionPoints, getManager, getName, getScopeType, getTypes, isNullable, isSerializable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.context.Contextual
create, destroy
 

Constructor Detail

Decorator

protected Decorator(Manager manager)
Create an interceptor bean

Parameters:
manager - the manager to create the interceptor for
Method Detail

getDelegateType

public abstract java.lang.Class<?> getDelegateType()
Obtains the type of the decorated bean

Returns:

getDelegateBindings

public abstract java.util.Set<java.lang.annotation.Annotation> getDelegateBindings()
Obtains the bindings of the decorated bean

Returns:

setDelegate

public abstract void setDelegate(java.lang.Object instance,
                                 java.lang.Object delegate)
Injects the delegate

Parameters:
instance - the instance to inject the delegate into
delegate - the delegate to inject


Copyright © 2008-2009. All Rights Reserved.