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

Part Number E41849-02

weblogic.descriptor.example
Class ExampleCustomizedBeanCustomizer

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

public class ExampleCustomizedBeanCustomizer
extends Object

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


Constructor Summary
ExampleCustomizedBeanCustomizer(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 customOperation(int value)
          Implements ExampleCustomizedBeanCustomizer.customOperation(int).
 String getGetterLikeOperation(int value)
          Implements ExampleCustomizedBeanCustomizer.getGetterLikeOperation(int).
 String getModifiableCustomizedProperty()
          Customizes the implementation of ExampleCustomizedBean.getModifiableCustomizedProperty().
 String getReadOnlyCustomizedProperty()
          Customizes the implementation of ExampleCustomizedBean.getReadOnlyCustomizedProperty().
 void setModifiableCustomizedProperty(String value)
          Customizes the implementation of ExampleCustomizedBean.setModifiableCustomizedProperty(java.lang.String).
 void setReadOnlyCustomizedProperty(String value)
          See ExampleCustomizedBeanCustomizer.getReadOnlyCustomizedProperty().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleCustomizedBeanCustomizer

public ExampleCustomizedBeanCustomizer(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.

getModifiableCustomizedProperty

public String getModifiableCustomizedProperty()
Customizes the implementation of ExampleCustomizedBean.getModifiableCustomizedProperty(). Note that the customizer must also implement the ExampleCustomizedBean.setModifiableCustomizedProperty(java.lang.String) and is thus responsible for storing the property value.

Returns:
property value

setModifiableCustomizedProperty

public void setModifiableCustomizedProperty(String value)
Customizes the implementation of ExampleCustomizedBean.setModifiableCustomizedProperty(java.lang.String). See ExampleCustomizedBeanCustomizer.getModifiableCustomizedProperty()


getReadOnlyCustomizedProperty

public String getReadOnlyCustomizedProperty()
Customizes the implementation of ExampleCustomizedBean.getReadOnlyCustomizedProperty(). Note that the customizer must also implement a setter for this property, even though there is no setter defined by the interface (see ExampleCustomizedBeanCustomizer.setReadOnlyCustomizedProperty(java.lang.String)). The custom implementation is responsible for storing the property value.

Returns:
property value

setReadOnlyCustomizedProperty

public void setReadOnlyCustomizedProperty(String value)
See ExampleCustomizedBeanCustomizer.getReadOnlyCustomizedProperty().


customOperation

public String customOperation(int value)
Implements ExampleCustomizedBeanCustomizer.customOperation(int).


getGetterLikeOperation

public String getGetterLikeOperation(int value)
Implements ExampleCustomizedBeanCustomizer.getGetterLikeOperation(int).


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