org.eclipse.jetty.annotations
类 AnnotationConfiguration

java.lang.Object
  继承者 org.eclipse.jetty.webapp.AbstractConfiguration
      继承者 org.eclipse.jetty.annotations.AnnotationConfiguration
所有已实现的接口:
Configuration

public class AnnotationConfiguration
extends AbstractConfiguration

Configuration for Annotations


字段摘要
protected  ClassInheritanceHandler _classInheritanceHandler
           
protected  List<ContainerInitializerAnnotationHandler> _containerInitializerAnnotationHandlers
           
protected  List<AnnotationParser.DiscoverableAnnotationHandler> _discoverableAnnotationHandlers
           
static String CLASS_INHERITANCE_MAP
           
static String CONTAINER_INITIALIZER_LISTENER
           
static String CONTAINER_INITIALIZERS
           
 
构造方法摘要
AnnotationConfiguration()
           
 
方法摘要
 void cloneConfigure(WebAppContext template, WebAppContext context)
          Clone configuration instance.
 void configure(WebAppContext context)
          Configure WebApp.
protected  AnnotationParser createAnnotationParser()
           
 void createServletContainerInitializerAnnotationHandlers(WebAppContext context, List<ServletContainerInitializer> scis)
           
 void deconfigure(WebAppContext context)
          DeConfigure WebApp.
 FragmentDescriptor getFragmentFromJar(Resource jar, List<FragmentDescriptor> frags)
          Get the web-fragment.xml from a jar
 List<ServletContainerInitializer> getNonExcludedInitializers(WebAppContext context)
           
 boolean isFromExcludedJar(WebAppContext context, ServletContainerInitializer service)
          Check to see if the ServletContainerIntializer loaded via the ServiceLoader came from a jar that is excluded by the fragment ordering.
 boolean isMetaDataComplete(WebDescriptor d)
           
 void parseContainerPath(WebAppContext context, AnnotationParser parser)
          Scan jars on container path.
 void parseWebInfClasses(WebAppContext context, AnnotationParser parser)
          Scan classes in WEB-INF/classes
 void parseWebInfLib(WebAppContext context, AnnotationParser parser)
          Scan jars in WEB-INF/lib
 void postConfigure(WebAppContext context)
          Clear down after configuration.
 void preConfigure(WebAppContext context)
          Set up for configuration.
 
从类 org.eclipse.jetty.webapp.AbstractConfiguration 继承的方法
destroy
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

CLASS_INHERITANCE_MAP

public static final String CLASS_INHERITANCE_MAP
另请参见:
常量字段值

CONTAINER_INITIALIZERS

public static final String CONTAINER_INITIALIZERS
另请参见:
常量字段值

CONTAINER_INITIALIZER_LISTENER

public static final String CONTAINER_INITIALIZER_LISTENER
另请参见:
常量字段值

_discoverableAnnotationHandlers

protected List<AnnotationParser.DiscoverableAnnotationHandler> _discoverableAnnotationHandlers

_classInheritanceHandler

protected ClassInheritanceHandler _classInheritanceHandler

_containerInitializerAnnotationHandlers

protected List<ContainerInitializerAnnotationHandler> _containerInitializerAnnotationHandlers
构造方法详细信息

AnnotationConfiguration

public AnnotationConfiguration()
方法详细信息

preConfigure

public void preConfigure(WebAppContext context)
                  throws Exception
从接口 Configuration 复制的描述
Set up for configuration.

Typically this step discovers configuration resources

指定者:
接口 Configuration 中的 preConfigure
覆盖:
AbstractConfiguration 中的 preConfigure
参数:
context - The context to configure
抛出:
Exception

deconfigure

public void deconfigure(WebAppContext context)
                 throws Exception
从接口 Configuration 复制的描述
DeConfigure WebApp. This method is called to undo all configuration done. This is called to allow the context to work correctly over a stop/start cycle

指定者:
接口 Configuration 中的 deconfigure
覆盖:
AbstractConfiguration 中的 deconfigure
参数:
context - The context to configure
抛出:
Exception

configure

public void configure(WebAppContext context)
               throws Exception
从接口 Configuration 复制的描述
Configure WebApp.

Typically this step applies the discovered configuration resources to either the WebAppContext or the associated MetaData.

指定者:
接口 Configuration 中的 configure
覆盖:
AbstractConfiguration 中的 configure
参数:
context - The context to configure
抛出:
Exception
另请参见:
AbstractConfiguration.configure(org.eclipse.jetty.webapp.WebAppContext)

postConfigure

public void postConfigure(WebAppContext context)
                   throws Exception
从接口 Configuration 复制的描述
Clear down after configuration.

指定者:
接口 Configuration 中的 postConfigure
覆盖:
AbstractConfiguration 中的 postConfigure
参数:
context - The context to configure
抛出:
Exception
另请参见:
AbstractConfiguration.postConfigure(org.eclipse.jetty.webapp.WebAppContext)

createAnnotationParser

protected AnnotationParser createAnnotationParser()
返回:
a new AnnotationParser. This method can be overridden to use a different impleemntation of the AnnotationParser. Note that this is considered internal API.

cloneConfigure

public void cloneConfigure(WebAppContext template,
                           WebAppContext context)
                    throws Exception
从接口 Configuration 复制的描述
Clone configuration instance.

Configure an instance of a WebAppContext, based on a template WebAppContext that has previously been configured by this Configuration.

指定者:
接口 Configuration 中的 cloneConfigure
覆盖:
AbstractConfiguration 中的 cloneConfigure
参数:
template - The template context
context - The context to configure
抛出:
Exception
另请参见:
AbstractConfiguration.cloneConfigure(org.eclipse.jetty.webapp.WebAppContext, org.eclipse.jetty.webapp.WebAppContext)

createServletContainerInitializerAnnotationHandlers

public void createServletContainerInitializerAnnotationHandlers(WebAppContext context,
                                                                List<ServletContainerInitializer> scis)
                                                         throws Exception
参数:
context -
scis -
抛出:
Exception

isFromExcludedJar

public boolean isFromExcludedJar(WebAppContext context,
                                 ServletContainerInitializer service)
                          throws Exception
Check to see if the ServletContainerIntializer loaded via the ServiceLoader came from a jar that is excluded by the fragment ordering. See ServletSpec 3.0 p.85.

参数:
orderedJars -
service -
返回:
抛出:
Exception

getNonExcludedInitializers

public List<ServletContainerInitializer> getNonExcludedInitializers(WebAppContext context)
                                                             throws Exception
参数:
context -
返回:
抛出:
Exception

parseContainerPath

public void parseContainerPath(WebAppContext context,
                               AnnotationParser parser)
                        throws Exception
Scan jars on container path.

参数:
context -
parser -
抛出:
Exception

parseWebInfLib

public void parseWebInfLib(WebAppContext context,
                           AnnotationParser parser)
                    throws Exception
Scan jars in WEB-INF/lib

参数:
context -
parser -
抛出:
Exception

parseWebInfClasses

public void parseWebInfClasses(WebAppContext context,
                               AnnotationParser parser)
                        throws Exception
Scan classes in WEB-INF/classes

参数:
context -
parser -
抛出:
Exception

getFragmentFromJar

public FragmentDescriptor getFragmentFromJar(Resource jar,
                                             List<FragmentDescriptor> frags)
                                      throws Exception
Get the web-fragment.xml from a jar

参数:
jar -
frags -
返回:
抛出:
Exception

isMetaDataComplete

public boolean isMetaDataComplete(WebDescriptor d)


Copyright © 2013. All Rights Reserved.