org.glassfish.config.support
Interface TargetValidator

All Known Implementing Classes:
CommandTarget

public interface TargetValidator

a extensible mechanism to define new configuration targets

Author:
Jerome Dochez

Method Summary
 String getDescription()
          Returns a internalized aware string describing the target type
 boolean isValid(org.jvnet.hk2.component.Habitat habitat, String target)
          returns true if the passed target parameter value is a valid identifier of a target instance.
 

Method Detail

isValid

boolean isValid(org.jvnet.hk2.component.Habitat habitat,
                String target)
returns true if the passed target parameter value is a valid identifier of a target instance.

Parameters:
habitat - the habitat where to lookup all the target instances
target - the target identifier to check
Returns:
true if target is a valid identifier of a target instance

getDescription

String getDescription()
Returns a internalized aware string describing the target type

Returns:
a type description


Copyright © 2012 GlassFish Community. All Rights Reserved.