org.jboss.beans.metadata.api.annotations
Annotation Type Factory


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Factory

Define constructor factory.

Author:
Ales Justin

Required Element Summary
 String factoryMethod
          Get the factory method.
 
Optional Element Summary
 Value factory
          Get the factory.
 Class<?> factoryClass
          Get the factory class.
 Value[] parameters
          Get parameters.
 

Element Detail

factoryMethod

public abstract String factoryMethod
Get the factory method.

Returns:
the factory method

factory

public abstract Value factory
Get the factory.

Returns:
the factory value
Default:
@org.jboss.beans.metadata.api.annotations.Value

factoryClass

public abstract Class<?> factoryClass
Get the factory class.

Returns:
the factory class
Default:
void.class

parameters

public abstract Value[] parameters
Get parameters.

Returns:
the parameters
Default:
{}


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.