Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-05


oracle.wcps.connection.annotation
Annotation Type ConnectionConfiguration


@Documented
@Inherited
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface ConnectionConfiguration

Annotation for connection configuration classes. The following is an example of an annotated configuration class:

@L10n(bundle="resources.JndiConnectionResources")
@ConnectionConfiguration
(
    connectionType="jndi.connection",
    cacheExpirySeconds=5
)
public class JndiConnectionConfig 
extends AnnotatedConfiguration
{
    @ConnectionProperty
    (
        propertyname="jndi_name"
    )
    @L10nDesc
    (
        key="jndiName.description"
    )
    public String jndiName;
}

Optional Element Summary
 int cacheExpirySeconds
          Specifies the cache expiration in seconds for this annotated connection configuration.
 int cacheSize
          Specifies the size of the cache per namespace and type.
 java.lang.String connectionType
          A string that represents the connection type of this connection configuration class.
 java.lang.String definitionName
          The name of the definition to use.

 

definitionName

public abstract java.lang.String definitionName
The name of the definition to use. This is only necessary for implementations that require a definition (i.e. property service).
Default:
"_undefined"

cacheExpirySeconds

public abstract int cacheExpirySeconds
Specifies the cache expiration in seconds for this annotated connection configuration.

Note: It is the discretion of the IConnectionConfigService implementation whether this configuration is honored at runtime.

Default:
-1

cacheSize

public abstract int cacheSize
Specifies the size of the cache per namespace and type.
Default:
100

connectionType

public abstract java.lang.String connectionType
A string that represents the connection type of this connection configuration class. If not specified, the configuration class name is used by default.
Default:
"_undefined"

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-05


Copyright © 2009, 2012, Oracle and/or its affiliates. All rights reserved.