org.apache.fulcrum.yaafi.framework.role
Class RoleEntryImpl

java.lang.Object
  extended by org.apache.fulcrum.yaafi.framework.role.RoleEntryImpl
All Implemented Interfaces:
RoleEntry

public class RoleEntryImpl
extends java.lang.Object
implements RoleEntry

Interface exposed by the ServiceContainerImpl

Author:
Siegfried Goeschl

Constructor Summary
RoleEntryImpl(java.lang.String name, java.lang.String defaultClass, java.lang.String shorthand, boolean earlyInit, java.lang.String description, java.lang.String componentType, java.lang.String componentFlavour, boolean hasProxy, java.util.ArrayList interceptorList, java.lang.String logCategory)
          YAAFI role entry
 
Method Summary
 void addInterceptors(java.util.Collection collection)
          Adds all given interceptors but avoiding duplicates.
 java.lang.String getComponentFlavour()
           
 java.lang.String getComponentType()
           
 java.lang.String getDescription()
           
 java.lang.String getImplementationClazzName()
           
 java.lang.String[] getInterceptorList()
           
 java.lang.String getLogCategory()
           
 java.lang.String getName()
           
 java.lang.String getShorthand()
           
 boolean hasDynamicProxy()
           
 boolean hasInterceptor(java.lang.String interceptorName)
          Determines if the given name of the interceptor is already defined.
 boolean isEarlyInit()
           
 void setHasDynamicProxy(boolean hasProxy)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoleEntryImpl

public RoleEntryImpl(java.lang.String name,
                     java.lang.String defaultClass,
                     java.lang.String shorthand,
                     boolean earlyInit,
                     java.lang.String description,
                     java.lang.String componentType,
                     java.lang.String componentFlavour,
                     boolean hasProxy,
                     java.util.ArrayList interceptorList,
                     java.lang.String logCategory)
YAAFI role entry

Parameters:
name - the name of the service component to be used for the service lookup
defaultClass - the name of the implementation class of the service component
shorthand - the short name of the service component
earlyInit - do we incarnate the instance of the service component during start-up?
description - a description for the service component if any
componentType - the type of service component
componentFlavour - the flavour of the gicen component type
hasProxy - create a dynamic proxy
interceptorList - the list of service interceptor to be invoked
logCategory - the category for creating the logger
Method Detail

getComponentType

public java.lang.String getComponentType()
Specified by:
getComponentType in interface RoleEntry
Returns:
Returns the componentType.

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface RoleEntry
Returns:
Returns the description.

getImplementationClazzName

public java.lang.String getImplementationClazzName()
Specified by:
getImplementationClazzName in interface RoleEntry
Returns:
Returns the implementationClazzName.

isEarlyInit

public boolean isEarlyInit()
Specified by:
isEarlyInit in interface RoleEntry
Returns:
Returns the isEarlyInit.

getName

public java.lang.String getName()
Specified by:
getName in interface RoleEntry
Returns:
Returns the name.

getShorthand

public java.lang.String getShorthand()
Specified by:
getShorthand in interface RoleEntry
Returns:
Returns the shorthand.

getComponentFlavour

public java.lang.String getComponentFlavour()
Specified by:
getComponentFlavour in interface RoleEntry
Returns:
Returns the componentFlavour.

hasDynamicProxy

public boolean hasDynamicProxy()
Specified by:
hasDynamicProxy in interface RoleEntry
Returns:
Returns the hasDynamicProxy.

setHasDynamicProxy

public void setHasDynamicProxy(boolean hasProxy)
Specified by:
setHasDynamicProxy in interface RoleEntry
Parameters:
hasProxy - The hasDynamicProxy to set.

hasInterceptor

public boolean hasInterceptor(java.lang.String interceptorName)
Determines if the given name of the interceptor is already defined.

Parameters:
interceptorName - the name of the interceptor
Returns:
true if it is already defined

addInterceptors

public void addInterceptors(java.util.Collection collection)
Adds all given interceptors but avoiding duplicates.

Specified by:
addInterceptors in interface RoleEntry
Parameters:
collection - the interceptors to be added

getInterceptorList

public java.lang.String[] getInterceptorList()
Specified by:
getInterceptorList in interface RoleEntry
Returns:
Returns the interceptorList.

getLogCategory

public java.lang.String getLogCategory()
Specified by:
getLogCategory in interface RoleEntry
Returns:
Returns the logCategory.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.