Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02

weblogic.descriptor.example
Class ExampleBeanCustomizer

java.lang.Object
  extended by weblogic.descriptor.example.ExampleBeanCustomizer

public class ExampleBeanCustomizer
extends Object

Customizes the implemenation of ExampleRootBean. Illustrates the contract that the generated bean has with the bean customizer.


Constructor Summary
ExampleBeanCustomizer(ExampleRootBean customized)
          Must define a constructor that takes the bean to be customized as its single argument.
 
Method Summary
 void _postCreate()
          Lifecycle method that is called after the bean has been created.
 void _preDestroy()
          Lifecycle method that is called before bean is destroyed.
 void _validate()
          Lifecycle method that is called whenever on-demand validation is triggered.
 String getCustomizedProperty()
          Customizes the implementation of the property named CustomizedProperty.
 void setCustomizedProperty(String value)
          See ExampleBeanCustomizer.getCustomizedProperty()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleBeanCustomizer

public ExampleBeanCustomizer(ExampleRootBean customized)
Must define a constructor that takes the bean to be customized as its single argument.

Parameters:
customized - - bean to be customized
Method Detail

_postCreate

public void _postCreate()
Lifecycle method that is called after the bean has been created.


_preDestroy

public void _preDestroy()
Lifecycle method that is called before bean is destroyed.


_validate

public void _validate()
               throws IllegalArgumentException
Lifecycle method that is called whenever on-demand validation is triggered.

Throws:
IllegalArgumentException - is a validation error occurs.

getCustomizedProperty

public String getCustomizedProperty()
Customizes the implementation of the property named CustomizedProperty. In order to customize a property, the customizer must define both the getter and the setter ExampleBeanCustomizer.getCustomizedProperty(). As a consequence, the customizer is responsible for storing the property value.

Returns:
property value

setCustomizedProperty

public void setCustomizedProperty(String value)
See ExampleBeanCustomizer.getCustomizedProperty()


Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02