org.beanlet.management
Class IdentityNamingStrategy

java.lang.Object
  extended by org.beanlet.management.IdentityNamingStrategy
All Implemented Interfaces:
NamingStrategy

public class IdentityNamingStrategy
extends Object
implements NamingStrategy

Naming strategy based on the identity of the underlying beanlet.

The ObjectName is composed of the following properties :

 type.getPackage().getName() + ":" +
 "type=" + type.getName() +
 "name=" + beanletName + 
 "hashCode=" + Integer.toHexString(System.identityHashCode(beanlet))
 


Constructor Summary
IdentityNamingStrategy()
           
 
Method Summary
 ObjectName getObjectName(Object beanlet, String beanletName, Class<?> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityNamingStrategy

public IdentityNamingStrategy()
Method Detail

getObjectName

public ObjectName getObjectName(Object beanlet,
                                String beanletName,
                                Class<?> type)
                         throws MalformedObjectNameException
Specified by:
getObjectName in interface NamingStrategy
Throws:
MalformedObjectNameException


Copyright © 2006-2012. All Rights Reserved.